Searched refs:mutex (Results 1 – 10 of 10) sorted by relevance
22 pthread_mutex_t mutex; member79 if (pthread_mutex_init(&pLocal->mutex, NULL)) { in Test_PalBinarySemaphoreCreate()97 if (pthread_mutex_destroy(&pLocal->mutex)) in Test_PalBinarySemaphoreDestroy()112 pthread_mutex_lock(&pLocal->mutex); in Test_PalBinarySemaphoreTake()116 pthread_cond_wait(&pLocal->cvar, &pLocal->mutex); in Test_PalBinarySemaphoreTake()125 &pLocal->mutex, (const struct timespec *)&ts)) { in Test_PalBinarySemaphoreTake()126 pthread_mutex_unlock(&pLocal->mutex); in Test_PalBinarySemaphoreTake()134 pthread_mutex_unlock(&pLocal->mutex); in Test_PalBinarySemaphoreTake()143 pthread_mutex_lock(&pLocal->mutex); in Test_PalBinarySemaphoreGive()146 pthread_mutex_unlock(&pLocal->mutex); in Test_PalBinarySemaphoreGive()[all …]
122 #define DEBUG_CONSOLE_CREATE_MUTEX_SEMAPHORE(mutex, stack) ((mutex) = xSemaphoreCreateMutexStatic(s… argument124 #define DEBUG_CONSOLE_CREATE_MUTEX_SEMAPHORE(mutex) ((mutex) = xSemaphoreCreateMutex()) argument126 #define DEBUG_CONSOLE_DESTROY_MUTEX_SEMAPHORE(mutex) \ argument129 if(NULL != (mutex)) \131 vSemaphoreDelete(mutex); \132 (mutex) = NULL; \136 #define DEBUG_CONSOLE_GIVE_MUTEX_SEMAPHORE(mutex) \ argument140 (void)xSemaphoreGive(mutex); \144 #define DEBUG_CONSOLE_TAKE_MUTEX_SEMAPHORE_BLOCKING(mutex) \ argument148 (void)xSemaphoreTake(mutex, portMAX_DELAY); \[all …]
12 * In this example, NS OS calls mutex in tfm_ns_interface_dispatch() to21 /* Include NS RTOS specific mutex declarations */22 #include "mutex.h"31 /* NS RTOS specific mutex creation/initialization */
85 mbedtls_threading_mutex_t MBEDTLS_PRIVATE(mutex); /*!< Thread-safety mutex. */
987 mbedtls_mutex_init( &ctx->MBEDTLS_PRIVATE(mutex) ); in mbedtls_rsa_init()1235 if( ( ret = mbedtls_mutex_lock( &ctx->MBEDTLS_PRIVATE(mutex) ) ) != 0 ) in mbedtls_rsa_public()1262 if( mbedtls_mutex_unlock( &ctx->mutex ) != 0 ) in mbedtls_rsa_public()1333 if( ( ret = mbedtls_mutex_lock( &ctx->MBEDTLS_PRIVATE(mutex) ) ) != 0 ) in mbedtls_rsa_private()1373 if( mbedtls_mutex_unlock( &ctx->MBEDTLS_PRIVATE(mutex) ) != 0 ) in mbedtls_rsa_private()2736 mbedtls_mutex_free( &ctx->MBEDTLS_PRIVATE(mutex) ); in mbedtls_rsa_free()
63 mbedtls_threading_mutex_t MBEDTLS_PRIVATE(mutex); /*!< Thread-safety mutex */
55 #define MUTEX_LOCK_AND_RETURN_UPON_ERROR(mutex) argument56 #define MUTEX_UNLOCK(mutex) argument
59 #define MUTEX_LOCK_AND_RETURN_UPON_ERROR(mutex) argument60 #define MUTEX_UNLOCK(mutex) argument
306 mbedtls_mutex_init( &ctx->MBEDTLS_PRIVATE(mutex) ); in mbedtls_rsa_init()1619 if ( (ret = mbedtls_mutex_lock(&ctx->MBEDTLS_PRIVATE(mutex)) ) != 0) in mbedtls_rsa_public()1660 if( mbedtls_mutex_unlock( &ctx->MBEDTLS_PRIVATE(mutex) ) != 0 ) in mbedtls_rsa_public()1705 if( ( ret = mbedtls_mutex_lock( &ctx->MBEDTLS_PRIVATE(mutex) ) ) != 0 ) in mbedtls_rsa_private()1743 if( mbedtls_mutex_unlock( &ctx->MBEDTLS_PRIVATE(mutex) ) != 0 ) in mbedtls_rsa_private()2771 mbedtls_mutex_free( &ctx->MBEDTLS_PRIVATE(mutex) ); in mbedtls_rsa_free()
72 Armv8-M TrustZone based platforms. In this example, NS OS calls mutex in