X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b89156b5dbb3c1270452379801a79613cd69bb32..bd0df01f3f59940fdbca7a3472c256be2d034ab9:/src/gtk/threadpsx.cpp diff --git a/src/gtk/threadpsx.cpp b/src/gtk/threadpsx.cpp index 07b5103654..363f0636ea 100644 --- a/src/gtk/threadpsx.cpp +++ b/src/gtk/threadpsx.cpp @@ -14,8 +14,11 @@ #include #include -#include #include +#include +#include "wx/thread.h" +#include "wx/module.h" +#include "wx/utils.h" enum thread_state { STATE_IDLE = 0, @@ -28,8 +31,6 @@ enum thread_state { // Static variables ///////////////////////////////////////////////////////////////////////////// -#include "thread.h" - static pthread_t p_mainid; wxMutex wxMainMutex; // controls access to all GUI functions @@ -278,7 +279,7 @@ void wxThread::TestDestroy() pthread_testcancel(); } -bool wxThread::IsMain() const +bool wxThread::IsMain() { return (bool)pthread_equal(pthread_self(), p_mainid); }