mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 22:09:19 -07:00
775dc8a9c0
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4 8ced0084-cf51-0410-be5f-012b33b47a6e
37 lines
474 B
C++
37 lines
474 B
C++
#pragma once
|
|
|
|
namespace W32Util
|
|
{
|
|
class Thread
|
|
{
|
|
private:
|
|
HANDLE _handle;
|
|
DWORD _tid; // thread id
|
|
|
|
public:
|
|
Thread ( DWORD (WINAPI * pFun) (void* arg), void* pArg);
|
|
~Thread () ;
|
|
|
|
//
|
|
// --- tools ---
|
|
//
|
|
|
|
void Resume(void);
|
|
|
|
void Suspend(void);
|
|
|
|
void WaitForDeath(void);
|
|
|
|
void Terminate(void);
|
|
|
|
void SetPriority(int _nPriority);
|
|
|
|
bool IsActive (void);
|
|
|
|
HANDLE GetHandle(void) {return _handle;}
|
|
|
|
};
|
|
|
|
}
|
|
|