Home
last modified time | relevance | path

Searched refs:mutex (Results 1 – 17 of 17) sorted by relevance

/openssl/crypto/thread/arch/
H A Dthread_posix.c98 pthread_mutex_t *mutex; in ossl_crypto_mutex_new() local
100 if ((mutex = OPENSSL_zalloc(sizeof(*mutex))) == NULL) in ossl_crypto_mutex_new()
103 OPENSSL_free(mutex); in ossl_crypto_mutex_new()
106 return (CRYPTO_MUTEX *)mutex; in ossl_crypto_mutex_new()
113 mutex_p = (pthread_mutex_t *)mutex; in ossl_crypto_mutex_try_lock()
126 mutex_p = (pthread_mutex_t *)mutex; in ossl_crypto_mutex_lock()
136 mutex_p = (pthread_mutex_t *)mutex; in ossl_crypto_mutex_unlock()
145 if (mutex == NULL) in ossl_crypto_mutex_free()
148 mutex_p = (pthread_mutex_t **)mutex; in ossl_crypto_mutex_free()
152 *mutex = NULL; in ossl_crypto_mutex_free()
[all …]
H A Dthread_win.c99 CRITICAL_SECTION *mutex; in ossl_crypto_mutex_new() local
101 if ((mutex = OPENSSL_zalloc(sizeof(*mutex))) == NULL) in ossl_crypto_mutex_new()
103 InitializeCriticalSection(mutex); in ossl_crypto_mutex_new()
104 return (CRYPTO_MUTEX *)mutex; in ossl_crypto_mutex_new()
107 void ossl_crypto_mutex_lock(CRYPTO_MUTEX *mutex) in ossl_crypto_mutex_lock() argument
111 mutex_p = (CRITICAL_SECTION *)mutex; in ossl_crypto_mutex_lock()
119 mutex_p = (CRITICAL_SECTION *)mutex; in ossl_crypto_mutex_try_lock()
130 mutex_p = (CRITICAL_SECTION *)mutex; in ossl_crypto_mutex_unlock()
138 mutex_p = (CRITICAL_SECTION **)mutex; in ossl_crypto_mutex_free()
142 *mutex = NULL; in ossl_crypto_mutex_free()
[all …]
H A Dthread_none.c39 void ossl_crypto_mutex_lock(CRYPTO_MUTEX *mutex) in ossl_crypto_mutex_lock() argument
43 int ossl_crypto_mutex_try_lock(CRYPTO_MUTEX *mutex) in ossl_crypto_mutex_try_lock() argument
48 void ossl_crypto_mutex_unlock(CRYPTO_MUTEX *mutex) in ossl_crypto_mutex_unlock() argument
52 void ossl_crypto_mutex_free(CRYPTO_MUTEX **mutex) in ossl_crypto_mutex_free() argument
61 void ossl_crypto_condvar_wait(CRYPTO_CONDVAR *cv, CRYPTO_MUTEX *mutex) in ossl_crypto_condvar_wait() argument
65 void ossl_crypto_condvar_wait_timeout(CRYPTO_CONDVAR *cv, CRYPTO_MUTEX *mutex, in ossl_crypto_condvar_wait_timeout() argument
/openssl/ssl/quic/
H A Dquic_reactor.c167 CRYPTO_MUTEX *mutex) in poll_two_fds() argument
209 if (mutex != NULL) in poll_two_fds()
210 ossl_crypto_mutex_unlock(mutex); in poll_two_fds()
236 if (mutex != NULL) in poll_two_fds()
237 ossl_crypto_mutex_lock(mutex); in poll_two_fds()
270 if (mutex != NULL) in poll_two_fds()
271 ossl_crypto_mutex_unlock(mutex); in poll_two_fds()
287 if (mutex != NULL) in poll_two_fds()
288 ossl_crypto_mutex_lock(mutex); in poll_two_fds()
324 CRYPTO_MUTEX *mutex) in poll_two_descriptors() argument
[all …]
H A Dquic_engine.c35 qeng->mutex = args->mutex; in ossl_quic_engine_new()
74 return qeng->mutex; in ossl_quic_engine_get0_mutex()
H A Dquic_tserver.c38 CRYPTO_MUTEX *mutex; member
96 if ((srv->mutex = ossl_crypto_mutex_new()) == NULL) in ossl_quic_tserver_new()
124 engine_args.mutex = srv->mutex; in ossl_quic_tserver_new()
162 ossl_crypto_mutex_free(&srv->mutex); in ossl_quic_tserver_new()
185 ossl_crypto_mutex_free(&srv->mutex); in ossl_quic_tserver_free()
H A Dquic_thread_assist.c76 CRYPTO_MUTEX *mutex = ossl_quic_channel_get_mutex(ch); in ossl_quic_thread_assist_init_start() local
78 if (mutex == NULL) in ossl_quic_thread_assist_init_start()
H A Dquic_engine_local.h41 CRYPTO_MUTEX *mutex; member
H A Dquic_local.h157 CRYPTO_MUTEX *mutex; member
H A Dquic_impl.c74 qc->mutex); in block_until_pred()
314 ossl_crypto_mutex_lock(qc->mutex); in quic_lock()
337 ossl_crypto_mutex_unlock(qc->mutex); in quic_unlock()
392 if ((qc->mutex = ossl_crypto_mutex_new()) == NULL) { in ossl_quic_new()
458 ossl_crypto_mutex_free(&qc->mutex); in ossl_quic_new()
560 ossl_crypto_mutex_free(&ctx.qc->mutex); in ossl_quic_free()
1507 engine_args.mutex = qc->mutex; in create_channel()
/openssl/include/internal/
H A Dthread_arch.h44 void ossl_crypto_mutex_lock(CRYPTO_MUTEX *mutex);
45 int ossl_crypto_mutex_try_lock(CRYPTO_MUTEX *mutex);
46 void ossl_crypto_mutex_unlock(CRYPTO_MUTEX *mutex);
47 void ossl_crypto_mutex_free(CRYPTO_MUTEX **mutex);
50 void ossl_crypto_condvar_wait(CRYPTO_CONDVAR *cv, CRYPTO_MUTEX *mutex);
51 void ossl_crypto_condvar_wait_timeout(CRYPTO_CONDVAR *cv, CRYPTO_MUTEX *mutex,
H A Dquic_engine.h54 CRYPTO_MUTEX *mutex; member
H A Dquic_reactor.h195 CRYPTO_MUTEX *mutex);
/openssl/doc/designs/quic-design/
H A Dquic-thread-assist.md12 per-connection mutex for the duration of any public API call which we forward to
/openssl/doc/man3/
H A DOSSL_trace_enabled.pod86 critical section (guarded by a mutex) to ensure that the trace output
/openssl/
H A DINSTALL.md1891 the mutex attribute `PTHREAD_MUTEX_ERRORCHECK` is used. If this is not
H A DCHANGES.md16035 Fix mutex callback return values in crypto/engine/hw_ncipher.c.

Completed in 99 milliseconds