blob: 9ac6dcf99d0be4c530f7443e9a533a70fdd53bb8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#ifndef _MULTITHREADEDHOOKSAMPLE_ITHREAD_H_
#define _MULTITHREADEDHOOKSAMPLE_ITHREAD_H_
typedef void(*ThreadFunction)();
class IThread
{
public:
virtual ~IThread() {}
virtual void Fork(ThreadFunction a_Function) = 0;
virtual void Join() = 0;
};
IThread* CreateThread();
void DestroyThread(IThread* a_Thread);
#endif // _MULTITHREADEDHOOKSAMPLE_ITHREAD_H_
|