Home
last modified time | relevance | path

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

/bionic/libc/bionic/
Dpthread_cond.cpp88 int pthread_condattr_getclock(const pthread_condattr_t* attr, clockid_t* clock) { in pthread_condattr_getclock() argument
89 *clock = COND_GET_CLOCK(*attr); in pthread_condattr_getclock()
93 int pthread_condattr_setclock(pthread_condattr_t* attr, clockid_t clock) { in pthread_condattr_setclock() argument
94 if (clock != CLOCK_MONOTONIC && clock != CLOCK_REALTIME) { in pthread_condattr_setclock()
98 *attr = COND_SET_CLOCK(*attr, clock); in pthread_condattr_setclock()
218 int pthread_cond_clockwait(pthread_cond_t* cond_interface, pthread_mutex_t* mutex, clockid_t clock, in pthread_cond_clockwait() argument
220 switch (clock) { in pthread_cond_clockwait()
Dtime64.c64 # define LOCALTIME_R(clock, result) localtime_r(clock, result) argument
66 # define LOCALTIME_R(clock, result) fake_localtime_r(clock, result) argument
69 # define GMTIME_R(clock, result) gmtime_r(clock, result) argument
71 # define GMTIME_R(clock, result) fake_gmtime_r(clock, result) argument
427 struct tm * fake_localtime_r(const time_t *clock, struct tm *result) { in fake_localtime_r() argument
428 const struct tm *static_result = localtime(clock); in fake_localtime_r()
445 struct tm * fake_gmtime_r(const time_t *clock, struct tm *result) { in fake_gmtime_r() argument
446 const struct tm *static_result = gmtime(clock); in fake_gmtime_r()
Dclock.cpp36 clock_t clock() { in clock() function
Dpthread_rwlock.cpp432 int pthread_rwlock_clockrdlock(pthread_rwlock_t* rwlock_interface, clockid_t clock, in pthread_rwlock_clockrdlock() argument
434 switch (clock) { in pthread_rwlock_clockrdlock()
470 int pthread_rwlock_clockwrlock(pthread_rwlock_t* rwlock_interface, clockid_t clock, in pthread_rwlock_clockwrlock() argument
472 switch (clock) { in pthread_rwlock_clockwrlock()
Dsemaphore.cpp278 int sem_clockwait(sem_t* sem, clockid_t clock, const timespec* abs_timeout) { in sem_clockwait() argument
279 switch (clock) { in sem_clockwait()
Dpthread_mutex.cpp992 int pthread_mutex_clocklock(pthread_mutex_t* mutex_interface, clockid_t clock, in pthread_mutex_clocklock() argument
994 switch (clock) { in pthread_mutex_clocklock()
/bionic/libc/private/
Dbionic_time_conversions.h66 …nline void absolute_timespec_from_timespec(timespec& abs_ts, const timespec& ts, clockid_t clock) { in absolute_timespec_from_timespec() argument
67 clock_gettime(clock, &abs_ts); in absolute_timespec_from_timespec()
/bionic/tests/
Dpthread_test.cpp929 clockid_t clock; member
1087 ASSERT_EQ(0, clock_gettime(arg->clock, &ts)); in pthread_rwlock_wakeup_timeout_helper()
1096 ASSERT_EQ(0, clock_gettime(arg->clock, &ts)); in pthread_rwlock_wakeup_timeout_helper()
1104 clockid_t clock, int (*lock_function)(pthread_rwlock_t* __rwlock, const timespec* __timeout)) { in pthread_rwlock_timedrdlock_timeout_helper() argument
1112 wakeup_arg.clock = clock; in pthread_rwlock_timedrdlock_timeout_helper()
1172 clockid_t clock, int (*lock_function)(pthread_rwlock_t* __rwlock, const timespec* __timeout)) { in pthread_rwlock_timedwrlock_timeout_helper() argument
1180 wakeup_arg.clock = clock; in pthread_rwlock_timedwrlock_timeout_helper()
1418 clockid_t clock; in TEST() local
1419 ASSERT_EQ(0, pthread_condattr_getclock(&attr, &clock)); in TEST()
1420 ASSERT_EQ(CLOCK_REALTIME, clock); in TEST()
[all …]
Dsemaphore_test.cpp104 static void sem_timedwait_helper(clockid_t clock, in sem_timedwait_helper() argument
110 ASSERT_EQ(0, clock_gettime(clock, &ts)); in sem_timedwait_helper()
Dtime_test.cpp754 TEST(time, clock) { in TEST() argument
756 clock_t t0 = clock(); in TEST()
758 clock_t t1 = clock(); in TEST()
/bionic/libc/kernel/uapi/linux/
Dscc.h127 long clock; member
Dkvm.h872 __u64 clock; member
/bionic/libc/include/
Dtime.h92 clock_t clock(void);
/bionic/tests/headers/posix/
Dtime_h.c78 FUNCTION(clock, clock_t (*f)(void)); in time_h()
/bionic/libc/kernel/uapi/drm/
Ddrm_mode.h110 __u32 clock; member
/bionic/libc/tools/
Dposix-2013.txt115 clock
/bionic/tools/versioner/platforms/
Dlibc.map.txt271 clock;
/bionic/libc/
Dlibc.map.txt271 clock;
DAndroid.bp1020 "bionic/clock.cpp",