Lines Matching refs:thread
14 ::CThread thread;
16 CThread() { Thread_CONSTRUCT(&thread) }
18 bool IsCreated() { return Thread_WasCreated(&thread) != 0; }
19 WRes Close() { return Thread_Close(&thread); }
20 // WRes Wait() { return Thread_Wait(&thread); }
21 WRes Wait_Close() { return Thread_Wait_Close(&thread); }
24 { return Thread_Create(&thread, startAddress, param); }
26 { return Thread_Create_With_Affinity(&thread, startAddress, param, affinity); }
28 { return Thread_Create_With_CpuSet(&thread, startAddress, param, cpuSet); }
31 operator HANDLE() { return thread; }
32 void Attach(HANDLE handle) { thread = handle; }
33 HANDLE Detach() { HANDLE h = thread; thread = NULL; return h; }
34 DWORD Resume() { return ::ResumeThread(thread); }
35 DWORD Suspend() { return ::SuspendThread(thread); }
36 bool Terminate(DWORD exitCode) { return BOOLToBool(::TerminateThread(thread, exitCode)); }
37 int GetPriority() { return ::GetThreadPriority(thread); }
38 bool SetPriority(int priority) { return BOOLToBool(::SetThreadPriority(thread, priority)); }