Lines Matching refs:test_mutex
24 K_MUTEX_DEFINE(test_mutex);
67 k_mutex_lock(&test_mutex, K_FOREVER); in condvar_wait_task()
68 ret_value = k_condvar_wait(&simple_condvar, &test_mutex, K_TICKS(time_val)); in condvar_wait_task()
87 k_mutex_unlock(&test_mutex); in condvar_wait_task()
116 k_mutex_lock(&test_mutex, K_FOREVER); in condvar_wait_wake_task()
117 ret_value = k_condvar_wait(&simple_condvar, &test_mutex, K_TICKS(time_val)); in condvar_wait_wake_task()
134 k_mutex_unlock(&test_mutex); in condvar_wait_wake_task()
329 k_mutex_lock(&test_mutex, K_FOREVER); in condvar_multiple_wait_wake_task()
332 &test_mutex, K_TICKS(time_val)); in condvar_multiple_wait_wake_task()
335 k_mutex_unlock(&test_mutex); in condvar_multiple_wait_wake_task()
515 k_mutex_lock(&test_mutex, K_FOREVER); in inc_count()
526 k_mutex_unlock(&test_mutex); in inc_count()
539 k_mutex_lock(&test_mutex, K_FOREVER); in watch_count()
541 k_condvar_wait(&simple_condvar, &test_mutex, K_FOREVER); in watch_count()
544 k_mutex_unlock(&test_mutex); in watch_count()
555 k_mutex_init(&test_mutex); in _condvar_usecase()
592 k_thread_access_grant(k_current_get(), &test_mutex, &condvar_tid, &condvar_wake_tid, in condvar_tests_setup()