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()