• Home
  • Raw
  • Download

Lines Matching refs:WRes

12 static WRes GetError()  in GetError()
15 return res ? (WRes)res : 1; in GetError()
18 static WRes HandleToWRes(HANDLE h) { return (h != NULL) ? 0 : GetError(); } in HandleToWRes()
19 static WRes BOOLToWRes(BOOL v) { return v ? 0 : GetError(); } in BOOLToWRes()
21 WRes HandlePtr_Close(HANDLE *p) in HandlePtr_Close()
32 WRes Handle_WaitObject(HANDLE h) { return (WRes)WaitForSingleObject(h, INFINITE); } in Handle_WaitObject()
34 WRes Thread_Create(CThread *p, THREAD_FUNC_TYPE func, LPVOID param) in Thread_Create()
54 static WRes Event_Create(CEvent *p, BOOL manualReset, int signaled) in Event_Create()
60 WRes Event_Set(CEvent *p) { return BOOLToWRes(SetEvent(*p)); } in Event_Set()
61 WRes Event_Reset(CEvent *p) { return BOOLToWRes(ResetEvent(*p)); } in Event_Reset()
63 WRes ManualResetEvent_Create(CManualResetEvent *p, int signaled) { return Event_Create(p, TRUE, sig… in ManualResetEvent_Create()
64 WRes AutoResetEvent_Create(CAutoResetEvent *p, int signaled) { return Event_Create(p, FALSE, signal… in AutoResetEvent_Create()
65 WRes ManualResetEvent_CreateNotSignaled(CManualResetEvent *p) { return ManualResetEvent_Create(p, 0… in ManualResetEvent_CreateNotSignaled()
66 WRes AutoResetEvent_CreateNotSignaled(CAutoResetEvent *p) { return AutoResetEvent_Create(p, 0); } in AutoResetEvent_CreateNotSignaled()
69 WRes Semaphore_Create(CSemaphore *p, UInt32 initCount, UInt32 maxCount) in Semaphore_Create()
75 static WRes Semaphore_Release(CSemaphore *p, LONG releaseCount, LONG *previousCount) in Semaphore_Release()
77 WRes Semaphore_ReleaseN(CSemaphore *p, UInt32 num) in Semaphore_ReleaseN()
79 WRes Semaphore_Release1(CSemaphore *p) { return Semaphore_ReleaseN(p, 1); } in Semaphore_Release1()
81 WRes CriticalSection_Init(CCriticalSection *p) in CriticalSection_Init()