Home | History | Annotate | Download | only in Windows

Lines Matching defs:thread

1 // Windows/Thread.h

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