Lines Matching refs:WRes
10 static WRes GetError() in GetError()
13 return (res) ? (WRes)(res) : 1; in GetError()
16 WRes HandleToWRes(HANDLE h) { return (h != 0) ? 0 : GetError(); } in HandleToWRes()
17 WRes BOOLToWRes(BOOL v) { return v ? 0 : GetError(); } in BOOLToWRes()
19 WRes HandlePtr_Close(HANDLE *p) in HandlePtr_Close()
28 WRes Handle_WaitObject(HANDLE h) { return (WRes)WaitForSingleObject(h, INFINITE); } in Handle_WaitObject()
30 WRes Thread_Create(CThread *p, THREAD_FUNC_TYPE func, LPVOID param) in Thread_Create()
43 WRes Event_Create(CEvent *p, BOOL manualReset, int signaled) in Event_Create()
49 WRes Event_Set(CEvent *p) { return BOOLToWRes(SetEvent(*p)); } in Event_Set()
50 WRes Event_Reset(CEvent *p) { return BOOLToWRes(ResetEvent(*p)); } in Event_Reset()
52 WRes ManualResetEvent_Create(CManualResetEvent *p, int signaled) { return Event_Create(p, TRUE, sig… in ManualResetEvent_Create()
53 WRes AutoResetEvent_Create(CAutoResetEvent *p, int signaled) { return Event_Create(p, FALSE, signal… in AutoResetEvent_Create()
54 WRes ManualResetEvent_CreateNotSignaled(CManualResetEvent *p) { return ManualResetEvent_Create(p, 0… in ManualResetEvent_CreateNotSignaled()
55 WRes AutoResetEvent_CreateNotSignaled(CAutoResetEvent *p) { return AutoResetEvent_Create(p, 0); } in AutoResetEvent_CreateNotSignaled()
58 WRes Semaphore_Create(CSemaphore *p, UInt32 initCount, UInt32 maxCount) in Semaphore_Create()
64 static WRes Semaphore_Release(CSemaphore *p, LONG releaseCount, LONG *previousCount) in Semaphore_Release()
66 WRes Semaphore_ReleaseN(CSemaphore *p, UInt32 num) in Semaphore_ReleaseN()
68 WRes Semaphore_Release1(CSemaphore *p) { return Semaphore_ReleaseN(p, 1); } in Semaphore_Release1()
70 WRes CriticalSection_Init(CCriticalSection *p) in CriticalSection_Init()