/dports/biology/pbseqan/seqan-21d95d737d8decb5cc3693b9065d81e831e7f57d/include/seqan/system/ |
H A D | system_mutex.h | 55 Handle hMutex; member 58 hMutex(NULL) {} in Mutex() 66 hMutex(other.hMutex) in Mutex() 73 hMutex(other.hMutex) in Mutex() 90 hMutex = NULL; in close() 109 hMutex(NULL) in Mutex() 124 hMutex(NULL) 134 hMutex(other.hMutex) 141 hMutex(other.hMutex) 163 hMutex = NULL; [all …]
|
/dports/biology/seqan1/seqan-1.3.1/seqan/system/ |
H A D | system_mutex.h | 55 Handle hMutex; member 58 hMutex(NULL) {} in Mutex() 74 bool success = CloseHandle(hMutex); in close() 75 hMutex = NULL; in close() 84 return ReleaseMutex(hMutex) != 0; in unlock() 88 return hMutex != NULL; 105 pthread_mutex_t data, *hMutex; 108 hMutex(NULL) {} 130 hMutex = NULL; 135 return !pthread_mutex_lock(hMutex); [all …]
|
/dports/security/softhsm2/softhsm-2.6.1/src/lib/common/ |
H A D | osmutex.cpp | 145 HANDLE hMutex; in OSCreateMutex() local 148 if (hMutex == NULL) in OSCreateMutex() 157 *newMutex = hMutex; in OSCreateMutex() 164 HANDLE hMutex = (HANDLE) mutex; in OSDestroyMutex() local 166 if (hMutex == NULL) in OSDestroyMutex() 173 if (CloseHandle(hMutex) == 0) in OSDestroyMutex() 188 HANDLE hMutex = (HANDLE) mutex; in OSLockMutex() local 190 if (hMutex == NULL) in OSLockMutex() 218 HANDLE hMutex = (HANDLE) mutex; in OSUnlockMutex() local 220 if (hMutex == NULL) in OSUnlockMutex() [all …]
|
/dports/devel/upp/upp/bazaar/plugin/geotiff/libgeotiff/port/ |
H A D | cpl_multiproc.cpp | 66 hMutex = NULL; in CPLMutexHolder() 75 hMutex = *phMutex; in CPLMutexHolder() 88 if( hMutex != NULL ) in ~CPLMutexHolder() 94 CPLReleaseMutex( hMutex ); in ~CPLMutexHolder() 457 HANDLE hMutex; in CPLCreateMutex() local 461 return (void *) hMutex; in CPLCreateMutex() 488 ReleaseMutex( hMutex ); in CPLReleaseMutex() 500 CloseHandle( hMutex ); in CPLDestroyMutex() 720 pthread_mutex_t *hMutex; in CPLCreateMutex() local 733 *hMutex = tmp_mutex; in CPLCreateMutex() [all …]
|
/dports/devel/upp/upp/bazaar/plugin/gdal/frmts/pcidsk/sdk/port/ |
H A D | pthread_mutex.cpp | 42 pthread_mutex_t *hMutex; member in PThreadMutex 59 hMutex = (pthread_mutex_t *) malloc(sizeof(pthread_mutex_t)); in PThreadMutex() 66 pthread_mutex_init( hMutex, &attr ); in PThreadMutex() 70 *hMutex = tmp_mutex; in PThreadMutex() 83 pthread_mutex_destroy( hMutex ); in ~PThreadMutex() 84 free( hMutex ); in ~PThreadMutex() 94 pthread_mutex_unlock( hMutex ); in Release() 105 return pthread_mutex_lock( hMutex ) == 0; in Acquire()
|
H A D | win32_mutex.cpp | 42 HANDLE hMutex; member in Win32Mutex 59 hMutex = CreateMutex( NULL, 1, NULL ); in Win32Mutex() 70 if( hMutex ) in ~Win32Mutex() 71 CloseHandle( hMutex ); in ~Win32Mutex() 81 ReleaseMutex( hMutex ); in Release() 94 hr = WaitForSingleObject( hMutex, (int) (3600 * 1000) ); in Acquire()
|
/dports/graphics/p5-Geo-GDAL/gdal-3.3.3/frmts/pcidsk/sdk/port/ |
H A D | pthread_mutex.cpp | 42 pthread_mutex_t *hMutex; member in PThreadMutex 62 hMutex = (pthread_mutex_t *) malloc(sizeof(pthread_mutex_t)); in PThreadMutex() 69 pthread_mutex_init( hMutex, &attr ); in PThreadMutex() 73 *hMutex = tmp_mutex; in PThreadMutex() 86 pthread_mutex_destroy( hMutex ); in ~PThreadMutex() 87 free( hMutex ); in ~PThreadMutex() 97 pthread_mutex_unlock( hMutex ); in Release() 108 return pthread_mutex_lock( hMutex ) == 0; in Acquire()
|
H A D | win32_mutex.cpp | 42 HANDLE hMutex; member in Win32Mutex 56 Win32Mutex::Win32Mutex(): hMutex(CreateMutex( NULL, 1, NULL )) in Win32Mutex() 69 if( hMutex ) in ~Win32Mutex() 70 CloseHandle( hMutex ); in ~Win32Mutex() 80 ReleaseMutex( hMutex ); in Release() 93 hr = WaitForSingleObject( hMutex, (int) (3600 * 1000) ); in Acquire()
|
/dports/graphics/gdal/gdal-3.3.3/frmts/pcidsk/sdk/port/ |
H A D | pthread_mutex.cpp | 42 pthread_mutex_t *hMutex; member in PThreadMutex 62 hMutex = (pthread_mutex_t *) malloc(sizeof(pthread_mutex_t)); in PThreadMutex() 69 pthread_mutex_init( hMutex, &attr ); in PThreadMutex() 73 *hMutex = tmp_mutex; in PThreadMutex() 86 pthread_mutex_destroy( hMutex ); in ~PThreadMutex() 87 free( hMutex ); in ~PThreadMutex() 97 pthread_mutex_unlock( hMutex ); in Release() 108 return pthread_mutex_lock( hMutex ) == 0; in Acquire()
|
H A D | win32_mutex.cpp | 42 HANDLE hMutex; member in Win32Mutex 56 Win32Mutex::Win32Mutex(): hMutex(CreateMutex( NULL, 1, NULL )) in Win32Mutex() 69 if( hMutex ) in ~Win32Mutex() 70 CloseHandle( hMutex ); in ~Win32Mutex() 80 ReleaseMutex( hMutex ); in Release() 93 hr = WaitForSingleObject( hMutex, (int) (3600 * 1000) ); in Acquire()
|
/dports/graphics/py-gdal/gdal-3.3.3/frmts/pcidsk/sdk/port/ |
H A D | pthread_mutex.cpp | 42 pthread_mutex_t *hMutex; member in PThreadMutex 62 hMutex = (pthread_mutex_t *) malloc(sizeof(pthread_mutex_t)); in PThreadMutex() 69 pthread_mutex_init( hMutex, &attr ); in PThreadMutex() 73 *hMutex = tmp_mutex; in PThreadMutex() 86 pthread_mutex_destroy( hMutex ); in ~PThreadMutex() 87 free( hMutex ); in ~PThreadMutex() 97 pthread_mutex_unlock( hMutex ); in Release() 108 return pthread_mutex_lock( hMutex ) == 0; in Acquire()
|
H A D | win32_mutex.cpp | 42 HANDLE hMutex; member in Win32Mutex 56 Win32Mutex::Win32Mutex(): hMutex(CreateMutex( NULL, 1, NULL )) in Win32Mutex() 69 if( hMutex ) in ~Win32Mutex() 70 CloseHandle( hMutex ); in ~Win32Mutex() 80 ReleaseMutex( hMutex ); in Release() 93 hr = WaitForSingleObject( hMutex, (int) (3600 * 1000) ); in Acquire()
|
/dports/devel/apr1/apr-1.7.0/locks/os2/ |
H A D | thread_mutex.c | 47 rc = DosCreateMutexSem(NULL, &(new_mutex->hMutex), 0, FALSE); in apr_thread_mutex_create() 60 ULONG rc = DosRequestMutexSem(mutex->hMutex, SEM_INDEFINITE_WAIT); in apr_thread_mutex_lock() 68 ULONG rc = DosRequestMutexSem(mutex->hMutex, SEM_IMMEDIATE_RETURN); in apr_thread_mutex_trylock() 81 rc = DosRequestMutexSem(mutex->hMutex, SEM_IMMEDIATE_RETURN); in apr_thread_mutex_timedlock() 84 rc = DosRequestMutexSem(mutex->hMutex, apr_time_as_msec(timeout)); in apr_thread_mutex_timedlock() 94 ULONG rc = DosReleaseMutexSem(mutex->hMutex); in apr_thread_mutex_unlock() 104 if (mutex->hMutex == 0) in apr_thread_mutex_destroy() 107 while (DosReleaseMutexSem(mutex->hMutex) == 0); in apr_thread_mutex_destroy() 109 rc = DosCloseMutexSem(mutex->hMutex); in apr_thread_mutex_destroy() 112 mutex->hMutex = 0; in apr_thread_mutex_destroy()
|
H A D | proc_mutex.c | 99 rc = DosCreateMutexSem(semname, &(new->hMutex), DC_SEM_SHARED, FALSE); in apr_proc_mutex_create() 124 rc = DosOpenMutexSem(semname, &(new->hMutex)); in apr_proc_mutex_child_init() 138 ULONG rc = DosRequestMutexSem(mutex->hMutex, SEM_INDEFINITE_WAIT); in apr_proc_mutex_lock() 152 ULONG rc = DosRequestMutexSem(mutex->hMutex, SEM_IMMEDIATE_RETURN); in apr_proc_mutex_trylock() 170 rc = DosRequestMutexSem(mutex->hMutex, SEM_IMMEDIATE_RETURN); in apr_proc_mutex_timedlock() 192 rc = DosReleaseMutexSem(mutex->hMutex); in apr_proc_mutex_unlock() 216 if (mutex->hMutex == 0) { in apr_proc_mutex_destroy() 220 rc = DosCloseMutexSem(mutex->hMutex); in apr_proc_mutex_destroy() 223 mutex->hMutex = 0; in apr_proc_mutex_destroy() 241 *ospmutex = pmutex->hMutex; in APR_POOL_IMPLEMENT_ACCESSOR() [all …]
|
/dports/security/john/john-1.9.0-jumbo-1/src/ |
H A D | win32_memmap.c | 11 static HANDLE hMutex; variable 32 hMutex = CreateMutex(NULL, 0, FName); in init_sharedmem() 38 CloseHandle(hMutex); in shutdown_sharedmem() 45 d = WaitForSingleObject(hMutex, 1000); in next_sharedmem_object() 53 ReleaseMutex(hMutex); in next_sharedmem_object() 59 ReleaseMutex(hMutex); in next_sharedmem_object() 62 ReleaseMutex(hMutex); in next_sharedmem_object() 84 d = WaitForSingleObject(hMutex, 1000); in release_sharedmem_object() 88 ReleaseMutex(hMutex); in release_sharedmem_object() 100 ReleaseMutex(hMutex); in release_sharedmem_object()
|
/dports/devel/sdl12/SDL-1.2.15/src/thread/win32/ |
H A D | win_ce_semaphore.c | 80 hSynch->hMutex = CreateMutex (lpSemaphoreAttributes, FALSE, NULL); in CreateSemaphoreCE() 82 WaitForSingleObject (hSynch->hMutex, INFINITE); in CreateSemaphoreCE() 87 ReleaseMutex (hSynch->hMutex); in CreateSemaphoreCE() 110 WaitForSingleObject (hSemCE->hMutex, INFINITE); in ReleaseSemaphoreCE() 129 ReleaseMutex (hSemCE->hMutex); in ReleaseSemaphoreCE() 140 WaitResult = WaitForSingleObject (hSemCE->hMutex, dwMilliseconds); in WaitForSemaphoreCE() 150 ReleaseMutex (hSemCE->hMutex); in WaitForSemaphoreCE() 169 WaitResult = WaitForSingleObject (hSemCE->hMutex, dwMilliseconds); in WaitForSemaphoreCE() 181 ReleaseMutex (hSemCE->hMutex); in WaitForSemaphoreCE() 191 if (hSynch->hMutex != NULL) Result = Result && CloseHandle (hSynch->hMutex); in CloseSynchHandle() [all …]
|
/dports/devel/fossology-nomos-standalone/fossology-3.11.0/src/nomos/agent_tests/testdata/NomosTestfiles/Freeware/ |
H A D | win_ce_semaphore.c | 78 hSynch->hMutex = CreateMutex (lpSemaphoreAttributes, FALSE, NULL); in CreateSemaphoreCE() 80 WaitForSingleObject (hSynch->hMutex, INFINITE); in CreateSemaphoreCE() 85 ReleaseMutex (hSynch->hMutex); in CreateSemaphoreCE() 108 WaitForSingleObject (hSemCE->hMutex, INFINITE); in ReleaseSemaphoreCE() 127 ReleaseMutex (hSemCE->hMutex); in ReleaseSemaphoreCE() 138 WaitResult = WaitForSingleObject (hSemCE->hMutex, dwMilliseconds); in WaitForSemaphoreCE() 148 ReleaseMutex (hSemCE->hMutex); in WaitForSemaphoreCE() 167 WaitResult = WaitForSingleObject (hSemCE->hMutex, dwMilliseconds); in WaitForSemaphoreCE() 179 ReleaseMutex (hSemCE->hMutex); in WaitForSemaphoreCE() 189 if (hSynch->hMutex != NULL) Result = Result && CloseHandle (hSynch->hMutex); in CloseSynchHandle() [all …]
|
/dports/devel/apr1/apr-1.7.0/locks/win32/ |
H A D | proc_mutex.c | 43 HANDLE hMutex; in apr_proc_mutex_create() local 64 hMutex = CreateMutexW(NULL, FALSE, mutexkey); in apr_proc_mutex_create() 70 hMutex = CreateMutexA(NULL, FALSE, mutexkey); in apr_proc_mutex_create() 74 if (!hMutex) { in apr_proc_mutex_create() 80 (*mutex)->handle = hMutex; in apr_proc_mutex_create() 91 HANDLE hMutex; in apr_proc_mutex_child_init() local 106 hMutex = CreateMutex(NULL, FALSE, mutexkey); in apr_proc_mutex_child_init() 108 CloseHandle(hMutex); in apr_proc_mutex_child_init() 109 hMutex = NULL; in apr_proc_mutex_child_init() 127 if (!hMutex) { in apr_proc_mutex_child_init() [all …]
|
/dports/graphics/py-gdal/gdal-3.3.3/ogr/ |
H A D | ograpispy.cpp | 144 if( hMutex ) in OGRAPISpyDestroyMutex() 147 hMutex = nullptr; in OGRAPISpyDestroyMutex() 191 CPLMutexHolderD(&hMutex); in OGRAPISpyEnabled() 562 CPLMutexHolderD(&hMutex); in OGRAPISpyOpen() 603 CPLMutexHolderD(&hMutex); in OGRAPISpyPreClose() 644 CPLMutexHolderD(&hMutex); in OGRAPISpyCreateDataSource() 663 CPLMutexHolderD(&hMutex); in OGRAPISpyDeleteDataSource() 674 CPLMutexHolderD(&hMutex); in OGRAPISpy_DS_GetLayer() 687 CPLMutexHolderD(&hMutex); in OGRAPISpy_DS_GetLayerCount() 696 CPLMutexHolderD(&hMutex); in OGRAPISpy_DS_GetLayerByName() [all …]
|
/dports/graphics/p5-Geo-GDAL/gdal-3.3.3/ogr/ |
H A D | ograpispy.cpp | 144 if( hMutex ) in OGRAPISpyDestroyMutex() 147 hMutex = nullptr; in OGRAPISpyDestroyMutex() 191 CPLMutexHolderD(&hMutex); in OGRAPISpyEnabled() 562 CPLMutexHolderD(&hMutex); in OGRAPISpyOpen() 603 CPLMutexHolderD(&hMutex); in OGRAPISpyPreClose() 644 CPLMutexHolderD(&hMutex); in OGRAPISpyCreateDataSource() 663 CPLMutexHolderD(&hMutex); in OGRAPISpyDeleteDataSource() 674 CPLMutexHolderD(&hMutex); in OGRAPISpy_DS_GetLayer() 687 CPLMutexHolderD(&hMutex); in OGRAPISpy_DS_GetLayerCount() 696 CPLMutexHolderD(&hMutex); in OGRAPISpy_DS_GetLayerByName() [all …]
|
/dports/graphics/gdal/gdal-3.3.3/ogr/ |
H A D | ograpispy.cpp | 144 if( hMutex ) in OGRAPISpyDestroyMutex() 147 hMutex = nullptr; in OGRAPISpyDestroyMutex() 191 CPLMutexHolderD(&hMutex); in OGRAPISpyEnabled() 562 CPLMutexHolderD(&hMutex); in OGRAPISpyOpen() 603 CPLMutexHolderD(&hMutex); in OGRAPISpyPreClose() 644 CPLMutexHolderD(&hMutex); in OGRAPISpyCreateDataSource() 663 CPLMutexHolderD(&hMutex); in OGRAPISpyDeleteDataSource() 674 CPLMutexHolderD(&hMutex); in OGRAPISpy_DS_GetLayer() 687 CPLMutexHolderD(&hMutex); in OGRAPISpy_DS_GetLayerCount() 696 CPLMutexHolderD(&hMutex); in OGRAPISpy_DS_GetLayerByName() [all …]
|
/dports/net/freeswitch/freeswitch-1.10.3.-release/libs/apr/locks/os2/ |
H A D | thread_mutex.c | 47 rc = DosCreateMutexSem(NULL, &(new_mutex->hMutex), 0, FALSE); in apr_thread_mutex_create() 60 ULONG rc = DosRequestMutexSem(mutex->hMutex, SEM_INDEFINITE_WAIT); in apr_thread_mutex_lock() 68 ULONG rc = DosRequestMutexSem(mutex->hMutex, SEM_IMMEDIATE_RETURN); in apr_thread_mutex_trylock() 76 ULONG rc = DosReleaseMutexSem(mutex->hMutex); in apr_thread_mutex_unlock() 86 if (mutex->hMutex == 0) in apr_thread_mutex_destroy() 89 while (DosReleaseMutexSem(mutex->hMutex) == 0); in apr_thread_mutex_destroy() 91 rc = DosCloseMutexSem(mutex->hMutex); in apr_thread_mutex_destroy() 94 mutex->hMutex = 0; in apr_thread_mutex_destroy()
|
H A D | proc_mutex.c | 94 rc = DosCreateMutexSem(semname, &(new->hMutex), DC_SEM_SHARED, FALSE); in apr_proc_mutex_create() 119 rc = DosOpenMutexSem(semname, &(new->hMutex)); in apr_proc_mutex_child_init() 133 ULONG rc = DosRequestMutexSem(mutex->hMutex, SEM_INDEFINITE_WAIT); in apr_proc_mutex_lock() 147 ULONG rc = DosRequestMutexSem(mutex->hMutex, SEM_IMMEDIATE_RETURN); in apr_proc_mutex_trylock() 165 rc = DosReleaseMutexSem(mutex->hMutex); in apr_proc_mutex_unlock() 189 if (mutex->hMutex == 0) { in apr_proc_mutex_destroy() 193 rc = DosCloseMutexSem(mutex->hMutex); in apr_proc_mutex_destroy() 196 mutex->hMutex = 0; in apr_proc_mutex_destroy() 213 *ospmutex = pmutex->hMutex; in APR_DECLARE() 229 new->hMutex = *ospmutex; in apr_os_proc_mutex_put()
|
/dports/net/freeswitch/freeswitch-1.10.3.-release/libs/apr/locks/win32/ |
H A D | proc_mutex.c | 43 HANDLE hMutex; in apr_proc_mutex_create() local 60 hMutex = CreateMutexW(NULL, FALSE, mutexkey); in apr_proc_mutex_create() 66 hMutex = CreateMutexA(NULL, FALSE, mutexkey); in apr_proc_mutex_create() 70 if (!hMutex) { in apr_proc_mutex_create() 76 (*mutex)->handle = hMutex; in apr_proc_mutex_create() 87 HANDLE hMutex; in apr_proc_mutex_child_init() local 104 hMutex = OpenMutexW(MUTEX_ALL_ACCESS, FALSE, mutexkey); in apr_proc_mutex_child_init() 110 hMutex = OpenMutexA(MUTEX_ALL_ACCESS, FALSE, mutexkey); in apr_proc_mutex_child_init() 114 if (!hMutex) { in apr_proc_mutex_child_init() 120 (*mutex)->handle = hMutex; in apr_proc_mutex_child_init()
|
/dports/math/scilab/scilab-6.1.1/scilab/modules/windows_tools/src/c/scilab_windows/ |
H A D | MutexClosingScilab.c | 31 HANDLE hMutex = NULL; in createMutexClosingScilab() local 32 hMutex = OpenMutex(MUTEX_ALL_ACCESS, FALSE, mutexname); in createMutexClosingScilab() 34 if (!hMutex) in createMutexClosingScilab() 57 HANDLE hMutex; in haveMutexClosingScilab() local 58 hMutex = OpenMutex(MUTEX_ALL_ACCESS, FALSE, mutexname); in haveMutexClosingScilab() 61 if (hMutex) in haveMutexClosingScilab()
|