#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,
// Static variables
/////////////////////////////////////////////////////////////////////////////
-#include "thread.h"
-
static pthread_t p_mainid;
wxMutex wxMainMutex; // controls access to all GUI functions
pthread_testcancel();
}
-bool wxThread::IsMain() const
+bool wxThread::IsMain()
{
return (bool)pthread_equal(pthread_self(), p_mainid);
}