source: cheroxy/branches/b0_1_threading/include/CRXThread.h@ 7

Last change on this file since 7 was 7, checked in by cheese, 12 years ago

#1 스레딩 모듈 추가 브랜치

File size: 520 bytes
Line 
1/*
2 * CRXThread.h
3 */
4
5#ifdef _WIN32
6# include <windows.h>
7# include <process.h>
8# define CRX_THREAD_TYPE void
9#else
10# include <pthread.h>
11# define CRX_THREAD_TYPE void *
12#endif
13
14class CRXThread
15{
16private:
17 bool mIsThreadRunnable;
18
19 CRX_THREAD_TYPE (* mCallback) (void * aArgs);
20 void * mThreadArg;
21
22public:
23 CRXThread (void);
24
25public:
26 void Create (void);
27
28 int Run (void);
29 void Stop (void);
30 void SetRunnable (bool aIsRunnable);
31 bool IsRunnable (void) const;
32};
33
34
Note: See TracBrowser for help on using the repository browser.