Home
last modified time | relevance | path

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

/DragonOS-0.1.2/kernel/src/ktest/
Dtest-mutex.c7 static mutex_t mtx; variable
18 assert(mutex_is_locked(&mtx) == 0); in ktest_mutex_case0()
19 mutex_lock(&mtx); in ktest_mutex_case0()
20 assert(mutex_is_locked(&mtx) == 1); in ktest_mutex_case0()
21 mutex_unlock(&mtx); in ktest_mutex_case0()
22 assert(mutex_is_locked(&mtx) == 0); in ktest_mutex_case0()
23 assert(mutex_trylock(&mtx) == 1); in ktest_mutex_case0()
24 mutex_unlock(&mtx); in ktest_mutex_case0()
25 assert(mutex_is_locked(&mtx) == 0); in ktest_mutex_case0()
37 assert(mutex_is_locked(&mtx) == 1); in ktest_mutex_case1_pid1()
[all …]