Home
last modified time | relevance | path

Searched refs:hSem (Results 1 – 4 of 4) sorted by relevance

/reactos/dll/win32/shlwapi/
H A Dthread.c432 LONG WINAPI SHGlobalCounterGetValue(HANDLE hSem) in SHGlobalCounterGetValue() argument
436 TRACE("(%p)\n", hSem); in SHGlobalCounterGetValue()
437 ReleaseSemaphore(hSem, 1, &dwOldCount); /* +1 */ in SHGlobalCounterGetValue()
438 WaitForSingleObject(hSem, 0); /* -1 */ in SHGlobalCounterGetValue()
453 LONG WINAPI SHGlobalCounterIncrement(HANDLE hSem) in SHGlobalCounterIncrement() argument
457 TRACE("(%p)\n", hSem); in SHGlobalCounterIncrement()
458 ReleaseSemaphore(hSem, 1, &dwOldCount); in SHGlobalCounterIncrement()
473 DWORD WINAPI SHGlobalCounterDecrement(HANDLE hSem) in SHGlobalCounterDecrement() argument
477 TRACE("(%p)\n", hSem); in SHGlobalCounterDecrement()
479 dwOldCount = SHGlobalCounterGetValue(hSem); in SHGlobalCounterDecrement()
[all …]
/reactos/win32ss/gdi/eng/
H A Dsemaphor.c150 HSEMAPHORE hSem; in EngInitializeSafeSemaphore() local
155 hSem = EngCreateSemaphore(); in EngInitializeSafeSemaphore()
156 if (hSem == 0) in EngInitializeSafeSemaphore()
163 (void)InterlockedExchangePointer((volatile PVOID *)&Semaphore->hsem, hSem); in EngInitializeSafeSemaphore()
/reactos/modules/rostests/winetests/kernel32/
H A Dfile.c3084 HANDLE hSem = CreateSemaphoreW(NULL, 1, 1, NULL); in test_async_file_errors() local
3090 ovl.hEvent = hSem; in test_async_file_errors()
3105 while (WaitForSingleObjectEx(hSem, INFINITE, TRUE) == WAIT_IO_COMPLETION) in test_async_file_errors()
/reactos/base/setup/reactos/
H A Dtreelist.c118 #define UNLOCK(d) ReleaseSemaphore(d->hSem,1,NULL)
119 #define LOCK(d) WaitForSingleObject(d->hSem,INFINITE)
228 HANDLE hSem; // access semaphore member
10088 pData->hSem = CreateSemaphore(0, 1, 0x70000000, 0); in TreeListProc()
10225 CloseHandle(pData->hSem); in TreeListProc()