Searched refs:mtx_t (Results 1 – 6 of 6) sorted by relevance
/Zephyr-latest/lib/libc/common/include/ |
D | threads.h | 52 int mtx_init(mtx_t *mutex, int type); 53 void mtx_destroy(mtx_t *mutex); 54 int mtx_lock(mtx_t *mutex); 55 int mtx_timedlock(mtx_t *ZRESTRICT mutex, const struct timespec *ZRESTRICT time_point); 56 int mtx_trylock(mtx_t *mutex); 57 int mtx_unlock(mtx_t *mutex); 60 int cnd_wait(cnd_t *cond, mtx_t *mtx); 61 int cnd_timedwait(cnd_t *ZRESTRICT cond, mtx_t *ZRESTRICT mtx, const struct timespec *ZRESTRICT ts);
|
/Zephyr-latest/lib/libc/common/source/thrd/ |
D | mtx.c | 13 int mtx_init(mtx_t *mutex, int type) in mtx_init() 52 void mtx_destroy(mtx_t *mutex) in mtx_destroy() 57 int mtx_lock(mtx_t *mutex) in mtx_lock() 67 int mtx_timedlock(mtx_t *restrict mutex, const struct timespec *restrict time_point) in mtx_timedlock() 79 int mtx_trylock(mtx_t *mutex) in mtx_trylock() 91 int mtx_unlock(mtx_t *mutex) in mtx_unlock()
|
D | cnd.c | 51 int cnd_timedwait(cnd_t *restrict cond, mtx_t *restrict mtx, const struct timespec *restrict ts) in cnd_timedwait() 63 int cnd_wait(cnd_t *cond, mtx_t *mtx) in cnd_wait()
|
/Zephyr-latest/tests/lib/c_lib/thrd/src/ |
D | mtx.c | 22 static mtx_t mutex; 33 zassert_not_equal(thrd_success, mtx_init((mtx_t *)BIOS_FOOD, FORTY_TWO)); in ZTEST() 50 mtx_destroy((mtx_t *)BIOS_FOOD); in ZTEST() 62 zassert_not_equal(thrd_success, mtx_lock((mtx_t *)BIOS_FOOD)); in ZTEST() 95 mtx_t *mtx = (mtx_t *)arg; in mtx_timedlock_fn() 136 mtx_t *mtx = (mtx_t *)arg; in mtx_trylock_fn() 159 mtx_t mtx = (mtx_t)BIOS_FOOD; in ZTEST()
|
D | cnd.c | 19 mtx_t mutex;
|
/Zephyr-latest/lib/libc/common/include/machine/ |
D | _threads.h | 17 typedef int mtx_t; typedef
|