Lines Matching refs:thread
14 ::CThread thread;
16 CThread() { Thread_Construct(&thread); } in CThread()
18 bool IsCreated() { return Thread_WasCreated(&thread) != 0; } in IsCreated()
19 WRes Close() { return Thread_Close(&thread); } in Close()
21 { return Thread_Create(&thread, startAddress, parameter); } in Create()
22 WRes Wait() { return Thread_Wait(&thread); } in Wait()
25 operator HANDLE() { return thread; } in HANDLE()
26 void Attach(HANDLE handle) { thread = handle; } in Attach()
27 HANDLE Detach() { HANDLE h = thread; thread = NULL; return h; } in Detach()
28 DWORD Resume() { return ::ResumeThread(thread); } in Resume()
29 DWORD Suspend() { return ::SuspendThread(thread); } in Suspend()
30 bool Terminate(DWORD exitCode) { return BOOLToBool(::TerminateThread(thread, exitCode)); } in Terminate()
31 int GetPriority() { return ::GetThreadPriority(thread); } in GetPriority()
32 bool SetPriority(int priority) { return BOOLToBool(::SetThreadPriority(thread, priority)); } in SetPriority()