Searched refs:time_point (Results 1 – 5 of 5) sorted by relevance
| /Zephyr-latest/tests/lib/c_lib/thrd/src/ |
| D | cnd.c | 28 struct timespec time_point; member 56 zassert_equal(thrd_error, cnd_timedwait(NULL, NULL, &fixture->time_point)); in ZTEST_F() 59 cnd_timedwait(NULL, &fixture->mutex, &fixture->time_point)); in ZTEST_F() 62 cnd_timedwait(&fixture->cond, NULL, &fixture->time_point)); in ZTEST_F() 70 struct timespec time_point; in test_cnd_thread_fn() local 74 zassume_ok(clock_gettime(CLOCK_MONOTONIC, &time_point)); in test_cnd_thread_fn() 75 timespec_add_ms(&time_point, WAIT_TIME_MS); in test_cnd_thread_fn() 76 res = cnd_timedwait(&fixture->cond, &fixture->mutex, &time_point); in test_cnd_thread_fn()
|
| D | mtx.c | 94 struct timespec time_point; in mtx_timedlock_fn() local 97 zassume_ok(clock_gettime(CLOCK_MONOTONIC, &time_point)); in mtx_timedlock_fn() 98 timespec_add_ms(&time_point, TIMEDLOCK_TIMEOUT_MS); in mtx_timedlock_fn() 100 return mtx_timedlock(mtx, &time_point); in mtx_timedlock_fn()
|
| /Zephyr-latest/lib/libc/common/source/thrd/ |
| D | mtx.c | 67 int mtx_timedlock(mtx_t *restrict mutex, const struct timespec *restrict time_point) in mtx_timedlock() argument 69 switch (pthread_mutex_timedlock(mutex, time_point)) { in mtx_timedlock()
|
| /Zephyr-latest/tests/posix/common/src/ |
| D | mutex.c | 182 struct timespec time_point; in test_mutex_timedlock_fn() local 185 zassume_ok(clock_gettime(CLOCK_MONOTONIC, &time_point)); in test_mutex_timedlock_fn() 186 timespec_add_ms(&time_point, TIMEDLOCK_TIMEOUT_MS); in test_mutex_timedlock_fn() 188 return INT_TO_POINTER(pthread_mutex_timedlock(mtx, &time_point)); in test_mutex_timedlock_fn()
|
| /Zephyr-latest/lib/libc/common/include/ |
| D | threads.h | 55 int mtx_timedlock(mtx_t *ZRESTRICT mutex, const struct timespec *ZRESTRICT time_point);
|