/dports/biology/seqan1/seqan-1.3.1/seqan/system/ |
H A D | system_sema.h | 57 Handle hSemaphore; member 65 …SEQAN_DO_SYS2((hSemaphore = CreateSemaphore(&SemaphoreDefaultAttributes, init, max, NULL)) != NULL… 77 SEQAN_DO_SYS2(CloseHandle(hSemaphore) != 0, "Could not destroy Semaphore"); in ~Semaphore() 84 return WaitForSingleObject(hSemaphore, timeout_millis) != WAIT_TIMEOUT; 93 SEQAN_DO_SYS2(ReleaseSemaphore(hSemaphore, 1, NULL) != 0, "Could not unlock Semaphore"); in unlock() 115 sem_t data, *hSemaphore; 118 hSemaphore(&data) 120 SEQAN_DO_SYS(!sem_init(hSemaphore, 0, init)); 124 SEQAN_DO_SYS(!sem_destroy(hSemaphore)); 128 SEQAN_DO_SYS(!sem_wait(hSemaphore)); [all …]
|
/dports/databases/mysql55-client/mysql-5.5.62/storage/ndb/src/common/portlib/win32/ |
H A D | NdbCondition.c | 26 HANDLE hSemaphore; member 42 if(!(pNdbCondition->hSemaphore = CreateSemaphore(0, 0, MAXLONG, 0))) in NdbCondition_Create() 69 result = WaitForSingleObject (p_cond->hSemaphore, INFINITE); in NdbCondition_Wait() 102 result = WaitForSingleObject(p_cond->hSemaphore, msecs); in NdbCondition_WaitTimeout() 132 return (ReleaseSemaphore(p_cond->hSemaphore, 1, 0) ? 0 : -1); in NdbCondition_Signal() 155 if(!ReleaseSemaphore(p_cond->hSemaphore, p_cond->nWaiters, 0)) in NdbCondition_Broadcast() 173 result = (CloseHandle(p_cond->hSemaphore) ? 0 : -1); in NdbCondition_Destroy()
|
/dports/lang/newlisp/newlisp-10.7.5/ |
H A D | win-util.c | 160 HANDLE hSemaphore; in winCreateSemaphore() local 166 hSemaphore = CreateSemaphore(&security, 0, 65536, NULL); in winCreateSemaphore() 168 return((UINT)hSemaphore); in winCreateSemaphore() 171 UINT winWaitSemaphore(UINT hSemaphore) in winWaitSemaphore() argument 175 dwWaitResult = WaitForSingleObject((HANDLE)hSemaphore, INFINITE); in winWaitSemaphore() 183 UINT winSignalSemaphore(UINT hSemaphore, int count) in winSignalSemaphore() argument 185 return(ReleaseSemaphore((HANDLE)hSemaphore, count, NULL)); in winSignalSemaphore() 188 int winDeleteSemaphore(UINT hSemaphore) in winDeleteSemaphore() argument 190 return (CloseHandle((HANDLE)hSemaphore)); in winDeleteSemaphore()
|
/dports/devel/cppcheck/cppcheck-2.6.3/test/cfg/ |
H A D | windows.cpp | 363 HANDLE hSemaphore; in nullPointer() local 366 CloseHandle(hSemaphore); in nullPointer() 479 HANDLE hSemaphore; in resourceLeak_CreateSemaphoreA() local 487 HANDLE hSemaphore; in resourceLeak_CreateSemaphoreEx() local 495 HANDLE hSemaphore; in resourceLeak_OpenSemaphore() local 631 HANDLE hSemaphore; in invalidFunctionArg() local 634 CloseHandle(hSemaphore); in invalidFunctionArg() 637 CloseHandle(hSemaphore); in invalidFunctionArg() 640 CloseHandle(hSemaphore); in invalidFunctionArg() 643 CloseHandle(hSemaphore); in invalidFunctionArg() [all …]
|
/dports/devel/cppcheck-gui/cppcheck-2.6.3/test/cfg/ |
H A D | windows.cpp | 363 HANDLE hSemaphore; in nullPointer() local 366 CloseHandle(hSemaphore); in nullPointer() 479 HANDLE hSemaphore; in resourceLeak_CreateSemaphoreA() local 487 HANDLE hSemaphore; in resourceLeak_CreateSemaphoreEx() local 495 HANDLE hSemaphore; in resourceLeak_OpenSemaphore() local 631 HANDLE hSemaphore; in invalidFunctionArg() local 634 CloseHandle(hSemaphore); in invalidFunctionArg() 637 CloseHandle(hSemaphore); in invalidFunctionArg() 640 CloseHandle(hSemaphore); in invalidFunctionArg() 643 CloseHandle(hSemaphore); in invalidFunctionArg() [all …]
|
/dports/multimedia/webcamoid/webcamoid-8.8.0/libAvKys/Plugins/VirtualCamera/src/dshow/VirtualCamera/src/ |
H A D | referenceclock.cpp | 55 HSEMAPHORE hSemaphore); 58 HSEMAPHORE hSemaphore); 136 HSEMAPHORE hSemaphore, in AdvisePeriodic() argument 153 adviseCookie->advisePeriodic(startTime, periodTime, hSemaphore); in AdvisePeriodic() 230 HSEMAPHORE hSemaphore) in advisePeriodic() argument 239 hSemaphore); in advisePeriodic() 245 HSEMAPHORE hSemaphore) in advisePeriodicTh() argument 268 ReleaseSemaphore(HANDLE(hSemaphore), 1, nullptr); in advisePeriodicTh()
|
H A D | referenceclock.h | 50 HSEMAPHORE hSemaphore,
|
/dports/multimedia/gpac-libgpac/gpac-1.0.0/src/utils/ |
H A D | os_thread.c | 699 HANDLE hSemaphore; member 701 sem_t *hSemaphore; 721 if (!tmp->hSemaphore) { 741 if (tmp->hSemaphore==SEM_FAILED) { 752 tmp->hSemaphore = &tmp->SemaData; 762 if (!CloseHandle(sm->hSemaphore)) { 767 sem_close(sm->hSemaphore); 771 sem_destroy(sm->hSemaphore); 791 hSem = sm->hSemaphore; 818 if (sem_wait(sm->hSemaphore) < 0) { [all …]
|
H A D | symbian_os.cpp | 559 RSemaphore *hSemaphore; member 569 tmp->hSemaphore = new RSemaphore(); in gf_sema_new() 570 if (!tmp->hSemaphore) { in gf_sema_new() 576 tmp->hSemaphore->CreateGlobal(semaName, InitCount); in gf_sema_new() 584 sm->hSemaphore->Close(); in gf_sema_del() 592 sm->hSemaphore->Signal(NbRelease); in gf_sema_notify() 599 sm->hSemaphore->Wait(); in gf_sema_wait()
|
/dports/multimedia/gpac-mp4box/gpac-1.0.0/src/utils/ |
H A D | os_thread.c | 699 HANDLE hSemaphore; member 701 sem_t *hSemaphore; 721 if (!tmp->hSemaphore) { 741 if (tmp->hSemaphore==SEM_FAILED) { 752 tmp->hSemaphore = &tmp->SemaData; 762 if (!CloseHandle(sm->hSemaphore)) { 767 sem_close(sm->hSemaphore); 771 sem_destroy(sm->hSemaphore); 791 hSem = sm->hSemaphore; 818 if (sem_wait(sm->hSemaphore) < 0) { [all …]
|
H A D | symbian_os.cpp | 559 RSemaphore *hSemaphore; member 569 tmp->hSemaphore = new RSemaphore(); in gf_sema_new() 570 if (!tmp->hSemaphore) { in gf_sema_new() 576 tmp->hSemaphore->CreateGlobal(semaName, InitCount); in gf_sema_new() 584 sm->hSemaphore->Close(); in gf_sema_del() 592 sm->hSemaphore->Signal(NbRelease); in gf_sema_notify() 599 sm->hSemaphore->Wait(); in gf_sema_wait()
|
/dports/comms/qt5-serialport/kde-qtserialport-5.15.2p2/src/serialport/ |
H A D | qwinoverlappedionotifier.cpp | 129 HANDLE hSemaphore = nullptr; member in QWinOverlappedIoNotifierPrivate 268 d->hSemaphore = CreateSemaphore(NULL, 0, 255, NULL); in QWinOverlappedIoNotifier() 278 CloseHandle(d->hSemaphore); in ~QWinOverlappedIoNotifier() 322 const DWORD wfso = WaitForSingleObject(hSemaphore, msecs); in waitForAnyNotified() 399 ReleaseSemaphore(hSemaphore, 1, NULL); in notify() 406 if (WaitForSingleObject(hSemaphore, 0) == WAIT_OBJECT_0) in _q_notified()
|
/dports/devel/apitrace/apitrace-9.0/inject/ |
H A D | injector.cpp | 549 HANDLE hSemaphore = NULL; in main() local 553 hSemaphore = CreateSemaphore(NULL, 1, 1, "inject_semaphore"); in main() 554 if (hSemaphore == NULL) { in main() 559 DWORD dwWait = WaitForSingleObject(hSemaphore, 0); in main() 562 dwWait = WaitForSingleObject(hSemaphore, INFINITE); in main() 777 if (hSemaphore) { in main() 778 ReleaseSemaphore(hSemaphore, 1, NULL); in main() 779 CloseHandle(hSemaphore); in main()
|
/dports/games/0ad/0ad-0.0.23b-alpha/source/lib/sysdep/os/win/wposix/ |
H A D | wpthread.cpp | 400 const HANDLE hSemaphore = CreateSemaphore(0, (LONG)initialValue, maxValue, 0); in sem_open() local 401 if(hSemaphore == 0) in sem_open() 408 CloseHandle(hSemaphore); in sem_open() 416 CloseHandle(hSemaphore); in sem_open() 425 *sem = (sem_t)hSemaphore; in sem_open()
|
/dports/www/webstone-ssl/WebStone2.5/src/ |
H A D | webclient.c | 118 HANDLE hSemaphore; variable 786 hSemaphore = CreateSemaphore(NULL, 0, 1, NULL); in main() 787 if(hSemaphore == NULL) in main() 979 ReleaseSemaphore(hSemaphore, 1, NULL); in main() 993 CloseHandle(hSemaphore); in main() 1091 WaitForSingleObject(hSemaphore, INFINITE); in ClientThread() 1092 ReleaseSemaphore(hSemaphore, 1, NULL); in ClientThread()
|
/dports/www/webstone/WebStone2.5/src/ |
H A D | webclient.c | 107 HANDLE hSemaphore; variable 723 hSemaphore = CreateSemaphore(NULL, 0, 1, NULL); in main() 724 if(hSemaphore == NULL) in main() 914 ReleaseSemaphore(hSemaphore, 1, NULL); in main() 928 CloseHandle(hSemaphore); in main() 1026 WaitForSingleObject(hSemaphore, INFINITE); in ClientThread() 1027 ReleaseSemaphore(hSemaphore, 1, NULL); in ClientThread()
|
/dports/misc/visp/visp-3.4.0/modules/gui/src/display/windows/ |
H A D | vpWin32API.cpp | 107 BOOL vpReleaseSemaphore(HANDLE hSemaphore, LONG IReleaseCount, LPLONG lpPreviousCount) in vpReleaseSemaphore() argument 109 BOOL ret = ReleaseSemaphore(hSemaphore, IReleaseCount, lpPreviousCount); in vpReleaseSemaphore()
|
/dports/net/pjsip/pjproject-2.11.1/pjlib/src/pj/ |
H A D | os_core_win32.c | 101 HANDLE hSemaphore; member 1181 sem->hSemaphore = CreateSemaphoreEx(NULL, initial, max, NULL, 0, in pj_sem_create() 1184 sem->hSemaphore = CreateSemaphore(NULL, initial, max, NULL); in pj_sem_create() 1187 if (!sem->hSemaphore) in pj_sem_create() 1218 result = WaitForSingleObjectEx(sem->hSemaphore, timeout, FALSE); in pj_sem_wait_for() 1220 result = WaitForSingleObject(sem->hSemaphore, timeout); in pj_sem_wait_for() 1272 if (ReleaseSemaphore(sem->hSemaphore, 1, NULL)) in pj_sem_post() 1289 if (CloseHandle(sem->hSemaphore)) in pj_sem_destroy()
|
/dports/net/freerdp/freerdp-2.5.0/winpr/libwinpr/synch/ |
H A D | semaphore.c | 220 BOOL ReleaseSemaphore(HANDLE hSemaphore, LONG lReleaseCount, LPLONG lpPreviousCount) in ReleaseSemaphore() argument 226 if (!winpr_Handle_GetInfo(hSemaphore, &Type, &Object)) in ReleaseSemaphore()
|
/dports/misc/visp/visp-3.4.0/modules/gui/include/visp3/gui/ |
H A D | vpWin32API.h | 58 BOOL vpReleaseSemaphore(HANDLE hSemaphore, LONG IReleaseCount, LPLONG lpPreviousCount);
|
/dports/games/libretro-bluemsx/blueMSX-libretro-faf470e/Src/ThirdParty/DirectShowSamples/ |
H A D | refclock.h | 110 HSEMAPHORE hSemaphore, // advise via a semaphore
|
/dports/net/pjsip/pjproject-2.11.1/third_party/BaseClasses/ |
H A D | refclock.h | 113 HSEMAPHORE hSemaphore, // advise via a semaphore
|
/dports/lang/mono/mono-5.10.1.57/external/corert/src/Common/src/Interop/Windows/mincore/ |
H A D | Interop.Threading.cs | 41 …internal extern static bool ReleaseSemaphore(IntPtr hSemaphore, int lReleaseCount, out int lpPrevi… in ReleaseSemaphore() argument
|
/dports/devel/R-cran-BH/BH/inst/include/boost/winapi/ |
H A D | semaphore.hpp | 65 boost::winapi::HANDLE_ hSemaphore,
|
/dports/math/stanmath/math-4.2.0/lib/boost_1.75.0/boost/winapi/ |
H A D | semaphore.hpp | 65 boost::winapi::HANDLE_ hSemaphore,
|