]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/threadpsx.cpp
Some manual updates; in MDI sample, child frames now have default size/position ...
[wxWidgets.git] / src / gtk / threadpsx.cpp
index 07b510365478c28e818bfe3a53bac46fab601279..363f0636eafc5bbab35e30b72e7e042fb81e61e5 100644 (file)
 
 #include <stdio.h>
 #include <unistd.h>
-#include <sched.h>
 #include <pthread.h>
+#include <errno.h>
+#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);
 }