TestDestroy() is not const any more (warnings suppressed)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1451 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
9390a202a8
commit
8c10faf1bd
@ -312,7 +312,7 @@ protected:
|
||||
// Returns TRUE if the thread was asked to terminate: this function should
|
||||
// be called by the thread from time to time, otherwise the main thread
|
||||
// will be left forever in Delete()!
|
||||
bool TestDestroy() const;
|
||||
bool TestDestroy();
|
||||
|
||||
// exits from the current thread - can be called only from this thread
|
||||
void Exit(void *exitcode = 0);
|
||||
|
@ -634,7 +634,7 @@ void wxThread::Exit(void *status)
|
||||
}
|
||||
|
||||
// also test whether we were paused
|
||||
bool wxThread::TestDestroy() const
|
||||
bool wxThread::TestDestroy()
|
||||
{
|
||||
wxCriticalSectionLocker lock((wxCriticalSection&)m_critsect);
|
||||
|
||||
|
@ -634,7 +634,7 @@ void wxThread::Exit(void *status)
|
||||
}
|
||||
|
||||
// also test whether we were paused
|
||||
bool wxThread::TestDestroy() const
|
||||
bool wxThread::TestDestroy()
|
||||
{
|
||||
wxCriticalSectionLocker lock((wxCriticalSection&)m_critsect);
|
||||
|
||||
|
@ -660,7 +660,7 @@ bool wxThread::IsAlive() const
|
||||
(p_internal->GetState() == STATE_PAUSED);
|
||||
}
|
||||
|
||||
bool wxThread::TestDestroy() const
|
||||
bool wxThread::TestDestroy()
|
||||
{
|
||||
wxCriticalSectionLocker lock((wxCriticalSection &)m_critsect);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user