#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 "wx/thread.h"
-
static pthread_t p_mainid;
wxMutex wxMainMutex; // controls access to all GUI functions