Searched refs:mutex_buf (Results 1 – 5 of 5) sorted by relevance
48 static POLARSSL_MUTEX_T *mutex_buf = NULL; variable55 mutex_buf = malloc(NUMT * sizeof(POLARSSL_MUTEX_T)); in polarsslthreadlock_thread_setup()56 if(!mutex_buf) in polarsslthreadlock_thread_setup()61 ret = pthread_mutex_init(&mutex_buf[i], NULL); in polarsslthreadlock_thread_setup()67 mutex_buf[i] = CreateMutex(0, FALSE, 0); in polarsslthreadlock_thread_setup()68 if(mutex_buf[i] == 0) in polarsslthreadlock_thread_setup()81 if(!mutex_buf) in polarsslthreadlock_thread_cleanup()86 ret = pthread_mutex_destroy(&mutex_buf[i]); in polarsslthreadlock_thread_cleanup()92 ret = CloseHandle(mutex_buf[i]); in polarsslthreadlock_thread_cleanup()97 free(mutex_buf); in polarsslthreadlock_thread_cleanup()[all …]
51 static MUTEX_TYPE *mutex_buf= NULL; variable57 MUTEX_LOCK(mutex_buf[n]); in locking_function()59 MUTEX_UNLOCK(mutex_buf[n]); in locking_function()71 mutex_buf = malloc(CRYPTO_num_locks( ) * sizeof(MUTEX_TYPE)); in thread_setup()72 if (!mutex_buf) in thread_setup()75 MUTEX_SETUP(mutex_buf[i]); in thread_setup()85 if (!mutex_buf) in thread_cleanup()90 MUTEX_CLEANUP(mutex_buf[i]); in thread_cleanup()91 free(mutex_buf); in thread_cleanup()92 mutex_buf = NULL; in thread_cleanup()
64 static MUTEX_TYPE *mutex_buf = NULL; variable73 MUTEX_LOCK(mutex_buf[n]); in locking_function()75 MUTEX_UNLOCK(mutex_buf[n]); in locking_function()149 mutex_buf = malloc(CRYPTO_num_locks() * sizeof(MUTEX_TYPE)); in InitializeTLS()150 if (mutex_buf == NULL) { in InitializeTLS()156 MUTEX_INIT(mutex_buf[i]); in InitializeTLS()597 if (mutex_buf != NULL) { in FreeTLS()606 MUTEX_FREE(mutex_buf[i]); in FreeTLS()607 free(mutex_buf); in FreeTLS()608 mutex_buf = NULL; in FreeTLS()
183 static MUTEX_TYPE* mutex_buf = NULL; variable187 MUTEX_LOCK(mutex_buf[n]); in locking_function()189 MUTEX_UNLOCK(mutex_buf[n]); in locking_function()245 mutex_buf = new MUTEX_TYPE[CRYPTO_num_locks()]; in InitializeSSLThread()246 if (!mutex_buf) in InitializeSSLThread()249 MUTEX_SETUP(mutex_buf[i]); in InitializeSSLThread()264 if (!mutex_buf) in CleanupSSL()272 MUTEX_CLEANUP(mutex_buf[i]); in CleanupSSL()273 delete [] mutex_buf; in CleanupSSL()274 mutex_buf = NULL; in CleanupSSL()
2235 static MUTEX_TYPE* mutex_buf = nullptr; variable2239 MUTEX_LOCK(mutex_buf[n]);2241 MUTEX_UNLOCK(mutex_buf[n]);2295 mutex_buf = new MUTEX_TYPE[CRYPTO_num_locks()];2296 if (!mutex_buf) {2301 MUTEX_SETUP(mutex_buf[i]);2311 if (!mutex_buf) {2319 MUTEX_CLEANUP(mutex_buf[i]);2322 free(mutex_buf);2323 mutex_buf = nullptr;