Home
last modified time | relevance | path

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

/openthread-latest/third_party/mbedtls/repo/tests/src/
Dthreading_helpers.c144 static mutex_functions_t mutex_functions; variable
203 mutex_functions.init(mutex); in mbedtls_test_wrap_mutex_init()
206 if (mutex_functions.lock(&mbedtls_test_mutex_mutex) == 0) { in mbedtls_test_wrap_mutex_init()
210 mutex_functions.unlock(&mbedtls_test_mutex_mutex); in mbedtls_test_wrap_mutex_init()
218 if (mutex_functions.lock(&mbedtls_test_mutex_mutex) == 0) { in mbedtls_test_wrap_mutex_free()
236 mutex_functions.unlock(&mbedtls_test_mutex_mutex); in mbedtls_test_wrap_mutex_free()
240 mutex_functions.free(mutex); in mbedtls_test_wrap_mutex_free()
248 int ret = mutex_functions.lock(mutex); in mbedtls_test_wrap_mutex_lock()
251 if (mutex_functions.lock(&mbedtls_test_mutex_mutex) == 0) { in mbedtls_test_wrap_mutex_lock()
269 mutex_functions.unlock(&mbedtls_test_mutex_mutex); in mbedtls_test_wrap_mutex_lock()
[all …]