Home
last modified time | relevance | path

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

/aosp_15_r20/external/openthread/third_party/mbedtls/repo/tests/src/
H A 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 …]
/aosp_15_r20/external/mbedtls/tests/src/
H A Dthreading_helpers.c78 static mutex_functions_t mutex_functions; variable
103 mutex_functions.init(mutex); in mbedtls_test_wrap_mutex_init()
129 mutex_functions.free(mutex); in mbedtls_test_wrap_mutex_free()
134 int ret = mutex_functions.lock(mutex); in mbedtls_test_wrap_mutex_lock()
156 int ret = mutex_functions.unlock(mutex); in mbedtls_test_wrap_mutex_unlock()
178 mutex_functions.init = mbedtls_mutex_init; in mbedtls_test_mutex_usage_init()
179 mutex_functions.free = mbedtls_mutex_free; in mbedtls_test_mutex_usage_init()
180 mutex_functions.lock = mbedtls_mutex_lock; in mbedtls_test_mutex_usage_init()
181 mutex_functions.unlock = mbedtls_mutex_unlock; in mbedtls_test_mutex_usage_init()