Home
last modified time | relevance | path

Searched refs:mbedtls_threading_mutex_t (Results 1 - 16 of 16) sorted by relevance

/third_party/mbedtls/library/
H A Dthreading.c53 static void threading_mutex_init_pthread(mbedtls_threading_mutex_t *mutex) in threading_mutex_init_pthread()
68 static void threading_mutex_free_pthread(mbedtls_threading_mutex_t *mutex) in threading_mutex_free_pthread()
77 static int threading_mutex_lock_pthread(mbedtls_threading_mutex_t *mutex) in threading_mutex_lock_pthread()
90 static int threading_mutex_unlock_pthread(mbedtls_threading_mutex_t *mutex) in threading_mutex_unlock_pthread()
103 void (*mbedtls_mutex_init)(mbedtls_threading_mutex_t *) = threading_mutex_init_pthread;
104 void (*mbedtls_mutex_free)(mbedtls_threading_mutex_t *) = threading_mutex_free_pthread;
105 int (*mbedtls_mutex_lock)(mbedtls_threading_mutex_t *) = threading_mutex_lock_pthread;
106 int (*mbedtls_mutex_unlock)(mbedtls_threading_mutex_t *) = threading_mutex_unlock_pthread;
116 static int threading_mutex_fail(mbedtls_threading_mutex_t *mutex) in threading_mutex_fail()
121 static void threading_mutex_dummy(mbedtls_threading_mutex_t *mute in threading_mutex_fail()
[all...]
H A Dmemory_buffer_alloc.c75 mbedtls_threading_mutex_t mutex;
/third_party/mbedtls/include/mbedtls/
H A Dthreading.h29 typedef struct mbedtls_threading_mutex_t { struct
39 } mbedtls_threading_mutex_t; typedef
43 /* You should define the mbedtls_threading_mutex_t type in your header */
64 void mbedtls_threading_set_alt(void (*mutex_init)(mbedtls_threading_mutex_t *),
65 void (*mutex_free)(mbedtls_threading_mutex_t *),
66 int (*mutex_lock)(mbedtls_threading_mutex_t *),
67 int (*mutex_unlock)(mbedtls_threading_mutex_t *));
81 extern void (*mbedtls_mutex_init)(mbedtls_threading_mutex_t *mutex);
82 extern void (*mbedtls_mutex_free)(mbedtls_threading_mutex_t *mutex);
83 extern int (*mbedtls_mutex_lock)(mbedtls_threading_mutex_t *mute
[all...]
H A Dssl_cookie.h71 mbedtls_threading_mutex_t MBEDTLS_PRIVATE(mutex);
H A Dssl_cache.h72 mbedtls_threading_mutex_t MBEDTLS_PRIVATE(mutex); /*!< mutex */
H A Dssl_ticket.h82 mbedtls_threading_mutex_t MBEDTLS_PRIVATE(mutex);
H A Dhmac_drbg.h112 mbedtls_threading_mutex_t MBEDTLS_PRIVATE(mutex);
H A Dctr_drbg.h214 mbedtls_threading_mutex_t MBEDTLS_PRIVATE(mutex);
H A Dentropy.h113 mbedtls_threading_mutex_t MBEDTLS_PRIVATE(mutex); /*!< mutex */
H A Drsa.h120 mbedtls_threading_mutex_t MBEDTLS_PRIVATE(mutex); /*!< Thread-safety mutex. */
/third_party/mbedtls/tests/src/
H A Dthreading_helpers.c115 * mbedtls_threading_mutex_t object itself. If there are more calls to free
128 /* Potential values for the state field of mbedtls_threading_mutex_t.
139 void (*init)(mbedtls_threading_mutex_t *);
140 void (*free)(mbedtls_threading_mutex_t *);
141 int (*lock)(mbedtls_threading_mutex_t *);
142 int (*unlock)(mbedtls_threading_mutex_t *);
148 * in every mbedtls_threading_mutex_t.
162 mbedtls_threading_mutex_t mbedtls_test_mutex_mutex;
173 static void mbedtls_test_mutex_usage_error(mbedtls_threading_mutex_t *mutex, in mbedtls_test_mutex_usage_error()
186 static int mbedtls_test_mutex_can_test(mbedtls_threading_mutex_t *mute
[all...]
H A Dhelpers.c33 mbedtls_threading_mutex_t mbedtls_test_info_mutex;
306 mbedtls_threading_mutex_t *mbedtls_test_get_info_mutex(void) in mbedtls_test_get_info_mutex()
/third_party/mbedtls/programs/test/
H A Dmetatest.c261 mbedtls_threading_mutex_t mutex; in mutex_lock_not_initialized()
277 mbedtls_threading_mutex_t mutex; in mutex_unlock_not_initialized()
293 mbedtls_threading_mutex_t mutex; in mutex_free_not_initialized()
307 mbedtls_threading_mutex_t mutex; in mutex_double_init()
322 mbedtls_threading_mutex_t mutex; in mutex_double_free()
337 mbedtls_threading_mutex_t mutex; in mutex_leak()
/third_party/mbedtls/tests/include/alt-dummy/
H A Dthreading_alt.h22 typedef struct mbedtls_threading_mutex_t { struct
24 } mbedtls_threading_mutex_t; typedef
/third_party/mbedtls/tests/include/test/
H A Dhelpers.h257 mbedtls_threading_mutex_t *mbedtls_test_get_info_mutex(void);
/third_party/mbedtls/programs/ssl/
H A Dssl_pthread_server.c64 mbedtls_threading_mutex_t debug_mutex;

Completed in 10 milliseconds