X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=include%2Fpthreadwrapper%2Fthread.h;h=7b5f38640d00bf1d5735412e7192de7f36bb9fc7;hb=df316253862dc50e8e5a790d9634ef90be37badb;hp=18e731e0bbe768c0891d1d224b465d861b9e4366;hpb=c7fcb4c4bc5012a584add81a9509fc1f84c3c688;p=fms.git diff --git a/include/pthreadwrapper/thread.h b/include/pthreadwrapper/thread.h index 18e731e..7b5f386 100644 --- a/include/pthreadwrapper/thread.h +++ b/include/pthreadwrapper/thread.h @@ -8,6 +8,8 @@ namespace PThread { +void Sleep(const long ms); + class Runnable; class Thread:public NonCopyable @@ -29,9 +31,11 @@ private: static void *EntryPoint(void *pthis); pthread_t m_thread; + int m_threadnum; bool m_running; // thread (object) is currently running bool m_cancelled; Runnable *m_runnable; // actual object that is being run + bool m_threadcleaned; };