Searched refs:mutex_buf (Results 1 – 3 of 3) sorted by relevance
48 static POLARSSL_MUTEX_T *mutex_buf = NULL; variable55 mutex_buf = calloc(NUMT * sizeof(POLARSSL_MUTEX_T), 1); in Curl_polarsslthreadlock_thread_setup()56 if(!mutex_buf) in Curl_polarsslthreadlock_thread_setup()61 ret = pthread_mutex_init(&mutex_buf[i], NULL); in Curl_polarsslthreadlock_thread_setup()67 mutex_buf[i] = CreateMutex(0, FALSE, 0); in Curl_polarsslthreadlock_thread_setup()68 if(mutex_buf[i] == 0) in Curl_polarsslthreadlock_thread_setup()81 if(!mutex_buf) in Curl_polarsslthreadlock_thread_cleanup()86 ret = pthread_mutex_destroy(&mutex_buf[i]); in Curl_polarsslthreadlock_thread_cleanup()92 ret = CloseHandle(mutex_buf[i]); in Curl_polarsslthreadlock_thread_cleanup()97 free(mutex_buf); in Curl_polarsslthreadlock_thread_cleanup()[all …]
53 static MUTEX_TYPE *mutex_buf = NULL; variable58 MUTEX_LOCK(mutex_buf[n]); in locking_function()60 MUTEX_UNLOCK(mutex_buf[n]); in locking_function()72 mutex_buf = malloc(CRYPTO_num_locks() * sizeof(MUTEX_TYPE)); in thread_setup()73 if(!mutex_buf) in thread_setup()76 MUTEX_SETUP(mutex_buf[i]); in thread_setup()86 if(!mutex_buf) in thread_cleanup()91 MUTEX_CLEANUP(mutex_buf[i]); in thread_cleanup()92 free(mutex_buf); in thread_cleanup()93 mutex_buf = NULL; in thread_cleanup()
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()