From 8c10faf1bdfc5b827c4361216cfd39e3bbf027a4 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 22 Jan 1999 18:35:42 +0000 Subject: [PATCH] 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 --- include/wx/thread.h | 2 +- src/gtk/threadpsx.cpp | 2 +- src/gtk1/threadpsx.cpp | 2 +- src/msw/thread.cpp | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/wx/thread.h b/include/wx/thread.h index cb3f019236..3a850853fa 100644 --- a/include/wx/thread.h +++ b/include/wx/thread.h @@ -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); diff --git a/src/gtk/threadpsx.cpp b/src/gtk/threadpsx.cpp index fba9ca0037..79542d5e19 100644 --- a/src/gtk/threadpsx.cpp +++ b/src/gtk/threadpsx.cpp @@ -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); diff --git a/src/gtk1/threadpsx.cpp b/src/gtk1/threadpsx.cpp index fba9ca0037..79542d5e19 100644 --- a/src/gtk1/threadpsx.cpp +++ b/src/gtk1/threadpsx.cpp @@ -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); diff --git a/src/msw/thread.cpp b/src/msw/thread.cpp index 67cab0e1b8..1e642fd8e8 100644 --- a/src/msw/thread.cpp +++ b/src/msw/thread.cpp @@ -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); -- 2.45.2