From: <laz...@us...> - 2004-03-05 21:37:54
|
Update of /cvsroot/rtk/rtk/rtk In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1183/rtk Modified Files: Thread.h Log Message: - Removed unneeded member variables / functions from Thread - Fixed linux Mutex initializer If you port something from efltk please, RTKlize it FIRST! And check that all variables are actually needed Index: Thread.h =================================================================== RCS file: /cvsroot/rtk/rtk/rtk/Thread.h,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** Thread.h 5 Mar 2004 18:30:58 -0000 1.5 --- Thread.h 5 Mar 2004 21:15:39 -0000 1.6 *************** *** 44,49 **** #define _RTK_FILENAME_H_ 1 ! #include <rtk/Mutex.h> ! #include <rtk/Export.h> namespace Rtk --- 44,58 ---- #define _RTK_FILENAME_H_ 1 ! #include "conf.h" ! #include "Mutex.h" ! #include "Export.h" ! ! #if defined(_RTK_WIN32_) ! #include <windows.h> ! typedef HANDLE ThreadHandle; ! #else ! #include <pthread.h> ! typedef pthread_t ThreadHandle; ! #endif namespace Rtk *************** *** 85,88 **** --- 94,98 ---- unsigned long GetId(); + ThreadHandle GetHandle() const { return _thread_handle; } ThreadFunction GetFunction() const { return _function; } *************** *** 91,107 **** virtual int ThreadStep() { return 0; } - // sleep time between single_steps - void ms_sleep(int sleep) { _ms_sleep = sleep; } - int ms_sleep() { return _ms_sleep; } - private: ! bool _running, _kill_thread; ThreadFunction _function; void* _arg; ! void* _thread_handle; unsigned long _thread_id; - unsigned int _ms_sleep; friend void *thread_function(void *arg); --- 101,112 ---- virtual int ThreadStep() { return 0; } private: ! bool _running; ThreadFunction _function; void* _arg; ! ThreadHandle _thread_handle; unsigned long _thread_id; friend void *thread_function(void *arg); |