Jthread.h #if (defined(WIN32) || defined(_WIN32_WCE)) #ifdef _WIN32_WCE DWORD threadid; static DWORD WINAPI TheThread(void *param); #else static UINT __stdcall TheThread(void *param); UINT threadid; #endif // _WIN32_WCE HANDLE threadhandle; #else // pthread type threads static void *TheThread(void *param); pthread_t threadid; #endif // WIN32 void *retval; bool running; JMutex runningmutex; JMutex continuemutex,continuemutex2; bool mutexinit; }; #endif // JTHREAD_H