From: Vadim Zeitlin Date: Mon, 11 Jan 1999 16:13:47 +0000 (+0000) Subject: TestDestroy() bug corrected X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/2501ce513b571d6d0a1e793cfb47f4533981e314 TestDestroy() bug corrected git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1374 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/gtk/threadpsx.cpp b/src/gtk/threadpsx.cpp index 63dc81b2c9..f4fd5908db 100644 --- a/src/gtk/threadpsx.cpp +++ b/src/gtk/threadpsx.cpp @@ -342,9 +342,12 @@ bool wxThread::TestDestroy() usleep(1); } } + + // VZ: do I understand it correctly that it will terminate the thread all by + // itself if it was cancelled? pthread_testcancel(); - return TRUE; /* what is this for? */ + return FALSE; } bool wxThread::IsMain() diff --git a/src/gtk1/threadpsx.cpp b/src/gtk1/threadpsx.cpp index 63dc81b2c9..f4fd5908db 100644 --- a/src/gtk1/threadpsx.cpp +++ b/src/gtk1/threadpsx.cpp @@ -342,9 +342,12 @@ bool wxThread::TestDestroy() usleep(1); } } + + // VZ: do I understand it correctly that it will terminate the thread all by + // itself if it was cancelled? pthread_testcancel(); - return TRUE; /* what is this for? */ + return FALSE; } bool wxThread::IsMain()