Lines Matching +full:n +full:- +full:th
4 * SPDX-License-Identifier: Apache-2.0
32 TC_PRINT("mutex lock is taken\n"); in normal_mutex_entry()
41 TC_PRINT("recursive mutex lock is taken\n"); in recursive_mutex_entry()
49 pthread_t th; in test_mutex_common() local
79 zassert_ok(pthread_create(&th, NULL, entry, NULL)); in test_mutex_common()
84 zassert_ok(pthread_join(th, NULL)); in test_mutex_common()
143 for (; i > 0; --i) { in ZTEST()
144 zassert_ok(pthread_mutex_destroy(&m[i - 1]), "failed to destroy mutex %zu", i - 1); in ZTEST()
174 ts->tv_nsec += ms * NSEC_PER_MSEC; in timespec_add_ms()
175 oflow = ts->tv_nsec >= NSEC_PER_SEC; in timespec_add_ms()
176 ts->tv_sec += oflow; in timespec_add_ms()
177 ts->tv_nsec -= oflow * NSEC_PER_SEC; in timespec_add_ms()
195 pthread_t th; in ZTEST() local
199 printk("Expecting timedlock with timeout of %d ms to fail\n", TIMEDLOCK_TIMEOUT_MS); in ZTEST()
201 zassert_ok(pthread_create(&th, NULL, test_mutex_timedlock_fn, &mutex)); in ZTEST()
202 zassert_ok(pthread_join(th, &ret)); in ZTEST()
206 printk("Expecting timedlock with timeout of %d ms to succeed after 100ms\n", in ZTEST()
208 zassert_ok(pthread_create(&th, NULL, test_mutex_timedlock_fn, &mutex)); in ZTEST()
212 zassert_ok(pthread_join(th, &ret)); in ZTEST()