Searched refs:openssl_mutexes (Results 1 – 2 of 2) sorted by relevance
57 static pthread_mutex_t *openssl_mutexes = NULL; variable66 pthread_mutex_lock(&openssl_mutexes[type]); in lws_openssl_lock_callback()68 pthread_mutex_unlock(&openssl_mutexes[type]); in lws_openssl_lock_callback()132 openssl_mutexes = (pthread_mutex_t *) in lws_context_init_ssl_library()134 (unsigned long)sizeof(openssl_mutexes[0]))); in lws_context_init_ssl_library()137 pthread_mutex_init(&openssl_mutexes[n], NULL); in lws_context_init_ssl_library()167 if (openssl_mutexes) { in lws_context_deinit_ssl_library()169 pthread_mutex_destroy(&openssl_mutexes[n]); in lws_context_deinit_ssl_library()171 OPENSSL_free(openssl_mutexes); in lws_context_deinit_ssl_library()172 openssl_mutexes = NULL; in lws_context_deinit_ssl_library()
53 pthread_mutex_t *openssl_mutexes; variable57 pthread_mutex_lock(&openssl_mutexes[type]); in openssl_lock()59 pthread_mutex_unlock(&openssl_mutexes[type]); in openssl_lock()85 openssl_mutexes = av_malloc_array(sizeof(pthread_mutex_t), CRYPTO_num_locks()); in ff_openssl_init()86 if (!openssl_mutexes) { in ff_openssl_init()92 pthread_mutex_init(&openssl_mutexes[i], NULL); in ff_openssl_init()116 pthread_mutex_destroy(&openssl_mutexes[i]); in ff_openssl_deinit()117 av_free(openssl_mutexes); in ff_openssl_deinit()