/reactos/dll/3rdparty/mbedtls/ |
H A D | threading.c | 98 if( mutex == NULL ) in threading_mutex_init_pthread() 107 mutex->is_valid = pthread_mutex_init( &mutex->mutex, NULL ) == 0; in threading_mutex_init_pthread() 112 if( mutex == NULL || !mutex->is_valid ) in threading_mutex_free_pthread() 115 (void) pthread_mutex_destroy( &mutex->mutex ); in threading_mutex_free_pthread() 116 mutex->is_valid = 0; in threading_mutex_free_pthread() 121 if( mutex == NULL || ! mutex->is_valid ) in threading_mutex_lock_pthread() 124 if( pthread_mutex_lock( &mutex->mutex ) != 0 ) in threading_mutex_lock_pthread() 132 if( mutex == NULL || ! mutex->is_valid ) in threading_mutex_unlock_pthread() 135 if( pthread_mutex_unlock( &mutex->mutex ) != 0 ) in threading_mutex_unlock_pthread() 156 ((void) mutex ); in threading_mutex_fail() [all …]
|
H A D | ssl_cookie.c | 108 mbedtls_mutex_init( &ctx->mutex ); in mbedtls_ssl_cookie_init() 122 mbedtls_mutex_free( &ctx->mutex ); in mbedtls_ssl_cookie_free() 206 if( ( ret = mbedtls_mutex_lock( &ctx->mutex ) ) != 0 ) in mbedtls_ssl_cookie_write() 214 if( mbedtls_mutex_unlock( &ctx->mutex ) != 0 ) in mbedtls_ssl_cookie_write() 242 if( ( ret = mbedtls_mutex_lock( &ctx->mutex ) ) != 0 ) in mbedtls_ssl_cookie_check() 252 if( mbedtls_mutex_unlock( &ctx->mutex ) != 0 ) in mbedtls_ssl_cookie_check()
|
H A D | entropy.c | 96 mbedtls_mutex_init( &ctx->mutex ); in mbedtls_entropy_init() 158 mbedtls_mutex_free( &ctx->mutex ); in mbedtls_entropy_free() 180 if( ( ret = mbedtls_mutex_lock( &ctx->mutex ) ) != 0 ) in mbedtls_entropy_add_source() 200 if( mbedtls_mutex_unlock( &ctx->mutex ) != 0 ) in mbedtls_entropy_add_source() 272 if( ( ret = mbedtls_mutex_lock( &ctx->mutex ) ) != 0 ) in mbedtls_entropy_update_manual() 279 if( mbedtls_mutex_unlock( &ctx->mutex ) != 0 ) in mbedtls_entropy_update_manual() 342 if( ( ret = mbedtls_mutex_lock( &ctx->mutex ) ) != 0 ) in mbedtls_entropy_gather() 349 if( mbedtls_mutex_unlock( &ctx->mutex ) != 0 ) in mbedtls_entropy_gather() 378 if( ( ret = mbedtls_mutex_lock( &ctx->mutex ) ) != 0 ) in mbedtls_entropy_func() 465 if( mbedtls_mutex_unlock( &ctx->mutex ) != 0 ) in mbedtls_entropy_func()
|
H A D | ssl_cache.c | 79 mbedtls_mutex_init( &cache->mutex ); in mbedtls_ssl_cache_init() 93 if( mbedtls_mutex_lock( &cache->mutex ) != 0 ) in mbedtls_ssl_cache_get() 155 if( mbedtls_mutex_unlock( &cache->mutex ) != 0 ) in mbedtls_ssl_cache_get() 174 if( ( ret = mbedtls_mutex_lock( &cache->mutex ) ) != 0 ) in mbedtls_ssl_cache_set() 303 if( mbedtls_mutex_unlock( &cache->mutex ) != 0 ) in mbedtls_ssl_cache_set() 347 mbedtls_mutex_free( &cache->mutex ); in mbedtls_ssl_cache_free()
|
H A D | ssl_ticket.c | 77 mbedtls_mutex_init( &ctx->mutex ); in mbedtls_ssl_ticket_init() 348 if( ( ret = mbedtls_mutex_lock( &ctx->mutex ) ) != 0 ) in mbedtls_ssl_ticket_write() 395 if( mbedtls_mutex_unlock( &ctx->mutex ) != 0 ) in mbedtls_ssl_ticket_write() 443 if( ( ret = mbedtls_mutex_lock( &ctx->mutex ) ) != 0 ) in mbedtls_ssl_ticket_parse() 508 if( mbedtls_mutex_unlock( &ctx->mutex ) != 0 ) in mbedtls_ssl_ticket_parse() 524 mbedtls_mutex_free( &ctx->mutex ); in mbedtls_ssl_ticket_free()
|
H A D | memory_buffer_alloc.c | 108 mbedtls_threading_mutex_t mutex; member 579 if( mbedtls_mutex_lock( &heap.mutex ) != 0 ) in buffer_alloc_calloc_mutexed() 582 if( mbedtls_mutex_unlock( &heap.mutex ) ) in buffer_alloc_calloc_mutexed() 591 if( mbedtls_mutex_lock( &heap.mutex ) ) in buffer_alloc_free_mutexed() 594 (void) mbedtls_mutex_unlock( &heap.mutex ); in buffer_alloc_free_mutexed() 603 mbedtls_mutex_init( &heap.mutex ); in mbedtls_memory_buffer_alloc_init() 636 mbedtls_mutex_free( &heap.mutex ); in mbedtls_memory_buffer_alloc_free()
|
H A D | hmac_drbg.c | 159 mbedtls_mutex_init( &ctx->mutex ); in mbedtls_hmac_drbg_seed_buf() 289 mbedtls_mutex_init( &ctx->mutex ); in mbedtls_hmac_drbg_seed() 435 if( ( ret = mbedtls_mutex_lock( &ctx->mutex ) ) != 0 ) in mbedtls_hmac_drbg_random() 442 if( mbedtls_mutex_unlock( &ctx->mutex ) != 0 ) in mbedtls_hmac_drbg_random() 461 mbedtls_mutex_free( &ctx->mutex ); in mbedtls_hmac_drbg_free()
|
H A D | ctr_drbg.c | 100 mbedtls_mutex_free( &ctx->mutex ); in mbedtls_ctr_drbg_free() 422 mbedtls_mutex_init( &ctx->mutex ); in mbedtls_ctr_drbg_seed() 558 if( ( ret = mbedtls_mutex_lock( &ctx->mutex ) ) != 0 ) in mbedtls_ctr_drbg_random() 565 if( mbedtls_mutex_unlock( &ctx->mutex ) != 0 ) in mbedtls_ctr_drbg_random()
|
/reactos/drivers/network/tcpip/lwip/src/include/lwip/ |
H A D | sys.h | 114 #define sys_mutex_new(mutex) sys_sem_new(mutex, 1) 115 #define sys_mutex_lock(mutex) sys_sem_wait(mutex) 116 #define sys_mutex_unlock(mutex) sys_sem_signal(mutex) 117 #define sys_mutex_free(mutex) sys_sem_free(mutex) 118 #define sys_mutex_valid(mutex) sys_sem_valid(mutex) 119 #define sys_mutex_set_invalid(mutex) sys_sem_set_invalid(mutex) 137 err_t sys_mutex_new(sys_mutex_t *mutex); 143 void sys_mutex_lock(sys_mutex_t *mutex); 149 void sys_mutex_unlock(sys_mutex_t *mutex); 155 void sys_mutex_free(sys_mutex_t *mutex); [all …]
|
/reactos/drivers/network/tcpip/lwip/test/unit/arch/ |
H A D | sys_arch.c | 149 sys_mutex_new(sys_mutex_t *mutex) in sys_mutex_new() argument 152 *mutex = 1; /* 1 allocated */ in sys_mutex_new() 157 sys_mutex_free(sys_mutex_t *mutex) in sys_mutex_free() argument 161 LWIP_ASSERT("*mutex >= 1", *mutex >= 1); in sys_mutex_free() 162 *mutex = 0; in sys_mutex_free() 166 sys_mutex_set_invalid(sys_mutex_t *mutex) in sys_mutex_set_invalid() argument 169 *mutex = 0; in sys_mutex_set_invalid() 173 sys_mutex_lock(sys_mutex_t *mutex) in sys_mutex_lock() argument 180 (*mutex)++; in sys_mutex_lock() 185 sys_mutex_unlock(sys_mutex_t *mutex) in sys_mutex_unlock() argument [all …]
|
H A D | sys_arch.h | 39 #define sys_mutex_valid(mutex) (((mutex) != NULL) argument
|
/reactos/dll/win32/rsaenh/ |
H A D | handle.c | 77 lpTable->mutex.DebugInfo->Spare[0] = 0; in destroy_handle_table() 78 DeleteCriticalSection(&lpTable->mutex); in destroy_handle_table() 103 EnterCriticalSection(&lpTable->mutex); in is_valid_handle() 119 LeaveCriticalSection(&lpTable->mutex); in is_valid_handle() 189 EnterCriticalSection(&lpTable->mutex); in alloc_handle() 205 LeaveCriticalSection(&lpTable->mutex); in alloc_handle() 238 EnterCriticalSection(&lpTable->mutex); in release_handle() 257 LeaveCriticalSection(&lpTable->mutex); in release_handle() 281 EnterCriticalSection(&lpTable->mutex); in lookup_handle() 291 LeaveCriticalSection(&lpTable->mutex); in lookup_handle() [all …]
|
H A D | handle.h | 56 CRITICAL_SECTION mutex; member
|
/reactos/sdk/include/reactos/libs/mbedtls/ |
H A D | threading.h | 75 pthread_mutex_t mutex; member 122 extern void (*mbedtls_mutex_init)( mbedtls_threading_mutex_t *mutex ); 123 extern void (*mbedtls_mutex_free)( mbedtls_threading_mutex_t *mutex ); 124 extern int (*mbedtls_mutex_lock)( mbedtls_threading_mutex_t *mutex ); 125 extern int (*mbedtls_mutex_unlock)( mbedtls_threading_mutex_t *mutex );
|
H A D | ssl_cookie.h | 94 mbedtls_threading_mutex_t mutex; member
|
H A D | ssl_ticket.h | 101 mbedtls_threading_mutex_t mutex; member
|
H A D | ssl_cache.h | 113 mbedtls_threading_mutex_t mutex; /*!< mutex */ member
|
/reactos/drivers/bus/acpi/include/ |
H A D | glue.h | 29 #define down(mutex) ExAcquireFastMutex(mutex) argument 30 #define up(mutex) ExReleaseFastMutex(mutex) argument
|
/reactos/sdk/lib/3rdparty/stlport/test/unit/ |
H A D | allocator_test.cpp | 90 pthread_mutex_init(&mutex, 0); in SharedDatas() 103 pthread_mutex_lock(&mutex); in initThreadVector() 116 pthread_cond_wait(&condition, &mutex); in initThreadVector() 125 pthread_mutex_unlock(&mutex); in initThreadVector() 136 pthread_mutex_t mutex; member in SharedDatas
|
/reactos/drivers/wdm/audio/drivers/CMIDriver/ |
H A D | minwave.cpp | 198 KeInitializeMutex(&mutex, 1); in Init() 986 KeReleaseMutex(&Miniport->mutex, FALSE); in prepareStream() 1000 KeReleaseMutex(&Miniport->mutex, false); in prepareStream() 1052 KeReleaseMutex(&Miniport->mutex, FALSE); in setDACChannels() 1063 KeReleaseMutex(&Miniport->mutex, FALSE); in setDACChannels() 1132 KeReleaseMutex(&Miniport->mutex, false); in setupSPDIFPlayback() 1364 KeReleaseMutex(&Miniport->mutex, false); in SetFormat() 1547 KeReleaseMutex(&Miniport->mutex, false); in SetState() 1586 KeReleaseMutex(&Miniport->mutex, false); in SetState() 1606 KeReleaseMutex(&Miniport->mutex, FALSE); in SetState() [all …]
|
/reactos/drivers/bus/acpi/acpica/include/platform/ |
H A D | achaiku.h | 52 struct mutex; 58 #define ACPI_MUTEX struct mutex *
|
/reactos/drivers/network/tcpip/lwip/src/core/ |
H A D | stats.c | 133 LWIP_PLATFORM_DIAG(("mutex.used: %"STAT_COUNTER_F"\n\t", sys->mutex.used)); in stats_display_sys() 134 LWIP_PLATFORM_DIAG(("mutex.max: %"STAT_COUNTER_F"\n\t", sys->mutex.max)); in stats_display_sys() 135 LWIP_PLATFORM_DIAG(("mutex.err: %"STAT_COUNTER_F"\n\t", sys->mutex.err)); in stats_display_sys()
|
/reactos/dll/win32/itss/ |
H A D | chm_lib.c | 529 CRITICAL_SECTION mutex; member 575 CHM_ACQUIRE_LOCK(h->mutex); in _chm_fetch_bytes() 600 CHM_RELEASE_LOCK(h->mutex); in _chm_fetch_bytes() 714 InitializeCriticalSection(&newHandle->mutex); in chm_openW() 715 newHandle->mutex.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": chmFile.mutex"); in chm_openW() 848 InitializeCriticalSection(&newHandle->mutex); in chm_dup() 849 newHandle->mutex.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": chmFile.mutex"); in chm_dup() 871 h->mutex.DebugInfo->Spare[0] = 0; in chm_close() 872 DeleteCriticalSection(&h->mutex); in chm_close()
|
/reactos/drivers/filesystems/ext2/inc/linux/ |
H A D | ext3_fs_i.h | 151 struct mutex truncate_mutex;
|
/reactos/dll/win32/wininet/ |
H A D | urlcache.c | 195 HANDLE mutex; /* handle of mutex */ member 606 ReleaseMutex(container->mutex); in cache_container_open_index() 621 ReleaseMutex(container->mutex); in cache_container_open_index() 628 ReleaseMutex(container->mutex); in cache_container_open_index() 640 ReleaseMutex(container->mutex); in cache_container_open_index() 665 ReleaseMutex(container->mutex); in cache_container_open_index() 669 ReleaseMutex(container->mutex); in cache_container_open_index() 741 CloseHandle(pContainer->mutex); in cache_container_delete_container() 930 ReleaseMutex(pContainer->mutex); in cache_container_lock_index() 946 ReleaseMutex(pContainer->mutex); in cache_container_lock_index() [all …]
|