Home | nevrax.com |
|
thread_win32.hGo to the documentation of this file.00001 /* 00002 $Id: thread_win32.h,v 1.1 2000/10/19 07:53:33 corvazier Exp $ 00003 00004 ------------------------------------------------------------------------ 00005 ClanLib, the platform independent game SDK. 00006 00007 This library is distributed under the GNU LIBRARY GENERAL PUBLIC LICENSE 00008 version 2. See COPYING for details. 00009 00010 For a total list of contributers see CREDITS. 00011 00012 ------------------------------------------------------------------------ 00013 */ 00014 00015 #ifndef header_thread_win32 00016 #define header_thread_win32 00017 00018 #include "thread.h" 00019 #include <windows.h> 00020 00021 class CL_Thread_Win32 : public CL_Thread 00022 { 00023 public: 00024 CL_Thread_Win32(CL_Runnable *runnable); 00025 virtual ~CL_Thread_Win32(); 00026 00027 virtual void start(); 00028 virtual void terminate(); 00029 virtual void wait(); 00030 00031 private: 00032 static unsigned long __stdcall func_proxy(void *arg); 00033 00034 HANDLE thread_handle; 00035 DWORD thread_id; 00036 CL_Runnable *runnable; 00037 }; 00038 00039 #endif 00040 |