Searched refs:pthread_mutex_timedlock (Results 1 - 3 of 3) sorted by relevance

/bionic/libc/include/
H A Dpthread.h204 int pthread_mutex_timedlock(pthread_mutex_t*, const struct timespec*) __nonnull((1, 2));
293 int pthread_mutex_lock_timeout_np(pthread_mutex_t*, unsigned) __attribute__((deprecated("use pthread_mutex_timedlock instead")));
/bionic/tests/
H A Dpthread_test.cpp1666 TEST(pthread, pthread_mutex_timedlock) {
1670 // If the mutex is already locked, pthread_mutex_timedlock should time out.
1675 ASSERT_EQ(ETIMEDOUT, pthread_mutex_timedlock(&m, &ts));
1677 ASSERT_EQ(EINVAL, pthread_mutex_timedlock(&m, &ts));
1679 ASSERT_EQ(EINVAL, pthread_mutex_timedlock(&m, &ts));
1682 ASSERT_EQ(ETIMEDOUT, pthread_mutex_timedlock(&m, &ts));
1684 // If the mutex is unlocked, pthread_mutex_timedlock should succeed.
1689 ASSERT_EQ(0, pthread_mutex_timedlock(&m, &ts));
/bionic/libc/bionic/
H A Dpthread_mutex.cpp629 int pthread_mutex_timedlock(pthread_mutex_t* mutex_interface, const timespec* abs_timeout) { function

Completed in 413 milliseconds