HomeSort by relevance Sort by last modified time
    Searched refs:abstime (Results 1 - 25 of 112) sorted by null

1 2 3 4 5

  /external/valgrind/main/helgrind/tests/
cond_timedwait_invalid.c 9 struct timespec abstime; local
16 abstime.tv_sec = time(NULL) + 2;
17 abstime.tv_nsec = 0;
19 abstime.tv_nsec += 1000000000;
22 assert(pthread_cond_timedwait(&cond, &mutex, &abstime)==EINVAL);
tc20_verifywrap.c 46 struct timespec abstime; local
119 memset( &abstime, 0, sizeof(abstime) );
121 r= pthread_mutex_timedlock( &mx3, &abstime ); assert(r);
163 memset( &abstime, 0, sizeof(abstime) );
164 abstime.tv_nsec = 1000000000 + 1;
165 r= pthread_cond_timedwait( &cv, &mx4, &abstime ); assert(r);
  /hardware/qcom/wlan/qcwcn/wifi_hal/
sync.h 64 int wait(struct timespec abstime)
70 abstime.tv_sec += now.tv_sec;
71 if(((abstime.tv_nsec + now.tv_usec*1000) > 1000*1000*1000) || (abstime.tv_nsec + now.tv_usec*1000 < 0))
73 abstime.tv_sec += 1;
74 abstime.tv_nsec += now.tv_usec * 1000;
75 abstime.tv_nsec -= 1000*1000*1000;
79 abstime.tv_nsec += now.tv_usec * 1000;
81 return pthread_cond_timedwait(&mCondition, &mMutex, &abstime);
  /external/lldb/source/Host/common/
Condition.cpp 72 // condition variable, or if "abstime" is valid (non-NULL) this
74 // specified in "abstime". If "abstime" is NULL this function will
81 Condition::Wait (Mutex &mutex, const TimeValue *abstime, bool *timed_out)
86 if (abstime && abstime->IsValid())
88 struct timespec abstime_ts = abstime->GetAsTimeSpec();
  /external/lldb/include/lldb/Host/
Predicate.h 206 /// @param[in] abstime
216 WaitForSetValueBits (T bits, const TimeValue *abstime = NULL)
226 printf("%s (bits = 0x%8.8x, abstime = %p), m_value = 0x%8.8x\n", __FUNCTION__, bits, abstime, m_value);
230 err = m_condition.Wait (m_mutex, abstime);
256 /// @param[in] abstime
265 WaitForResetValueBits (T bits, const TimeValue *abstime = NULL)
277 printf("%s (bits = 0x%8.8x, abstime = %p), m_value = 0x%8.8x\n", __FUNCTION__, bits, abstime, m_value);
281 err = m_condition.Wait (m_mutex, abstime);
    [all...]
Condition.h 76 /// If \a abstime is non-NULL, this function will return when the
77 /// system time reaches the time specified in \a abstime if the
78 /// condition variable doesn't get unblocked. If \a abstime is NULL
89 /// @param[in] abstime
102 Wait (Mutex &mutex, const TimeValue *abstime = NULL, bool *timed_out = NULL);
  /external/qemu/distrib/sdl-1.2.15/src/thread/pthread/
SDL_syscond.c 102 struct timespec abstime; local
111 abstime.tv_sec = delta.tv_sec + (ms/1000);
112 abstime.tv_nsec = (delta.tv_usec + (ms%1000) * 1000) * 1000;
113 if ( abstime.tv_nsec > 1000000000 ) {
114 abstime.tv_sec += 1;
115 abstime.tv_nsec -= 1000000000;
119 retval = pthread_cond_timedwait(&cond->cond, &mutex->id, &abstime);
  /external/qemu/distrib/sdl-1.2.15/src/thread/riscos/
SDL_syscond.c 106 struct timespec abstime; local
115 abstime.tv_sec = delta.tv_sec + (ms/1000);
116 abstime.tv_nsec = (delta.tv_usec + (ms%1000) * 1000) * 1000;
117 if ( abstime.tv_nsec > 1000000000 ) {
118 abstime.tv_sec += 1;
119 abstime.tv_nsec -= 1000000000;
123 retval = pthread_cond_timedwait(&cond->cond, &mutex->id, &abstime);
  /external/chromium_org/native_client_sdk/src/libraries/third_party/pthreads-win32/
pthread_rwlock_timedrdlock.c 44 const struct timespec *abstime)
78 pthread_mutex_timedlock (&(rwl->mtxExclusiveAccess), abstime)) != 0)
87 abstime)) != 0)
pthread_rwlock_timedwrlock.c 44 const struct timespec *abstime)
78 pthread_mutex_timedlock (&(rwl->mtxExclusiveAccess), abstime)) != 0)
85 abstime)) != 0)
117 abstime);
pthread_cond_wait.c 355 pthread_mutex_t * mutex, const struct timespec *abstime)
431 if (sem_timedwait (&(cv->semBlockQueue), abstime) != 0)
504 * The NULL abstime arg means INFINITE waiting.
514 const struct timespec *abstime)
520 * specified by abstime passes.
529 * abstime
536 * specified by abstime passes.
552 * EINVAL 'cond', 'mutex', or abstime is invalid,
555 * ETIMEDOUT abstime ellapsed before cond was signaled.
560 if (abstime == NULL
    [all...]
pthread_mutex_timedlock.c 42 ptw32_timed_eventwait (HANDLE event, const struct timespec *abstime)
47 * abstime passes.
48 * If abstime has passed when this routine is called then
51 * If 'abstime' is a NULL pointer then this function will
59 * ETIMEDOUT abstime passed
75 if (abstime == NULL)
84 milliseconds = ptw32_relmillisecs (abstime);
110 const struct timespec *abstime)
149 if (0 != (result = ptw32_timed_eventwait (mx->event, abstime)))
187 if (0 != (result = ptw32_timed_eventwait (mx->event, abstime)))
    [all...]
ptw32_relmillisecs.c 48 ptw32_relmillisecs (const struct timespec * abstime)
74 * subtract current system time from abstime in a way that checks
75 * that abstime is never in the past, or is never equivalent to the
80 tmpAbsMilliseconds = (int64_t)abstime->tv_sec * MILLISEC_PER_SEC;
81 tmpAbsMilliseconds += ((int64_t)abstime->tv_nsec + (NANOSEC_PER_MILLISEC/2)) / NANOSEC_PER_MILLISEC;
127 /* The abstime given is in the past */
sem_timedwait.c 98 sem_timedwait (sem_t * sem, const struct timespec *abstime)
103 * 'abstime' time.
109 * abstime
120 * If 'abstime' is a NULL pointer then this function will
132 * ETIMEDOUT abstime elapsed before success.
150 if (abstime == NULL)
159 milliseconds = ptw32_relmillisecs (abstime);
  /bionic/libc/bionic/
pthread_cond.cpp 166 int __pthread_cond_timedwait(pthread_cond_t* cond, pthread_mutex_t* mutex, const timespec* abstime, clockid_t clock) {
170 if (abstime != NULL) {
171 if (__timespec_from_absolute(&ts, abstime, clock) < 0) {
194 int pthread_cond_timedwait(pthread_cond_t *cond, pthread_mutex_t * mutex, const timespec *abstime) {
195 return __pthread_cond_timedwait(cond, mutex, abstime, COND_GET_CLOCK(cond->value));
200 extern "C" int pthread_cond_timedwait_monotonic(pthread_cond_t* cond, pthread_mutex_t* mutex, const timespec* abstime) {
201 return __pthread_cond_timedwait(cond, mutex, abstime, CLOCK_MONOTONIC);
204 extern "C" int pthread_cond_timedwait_monotonic_np(pthread_cond_t* cond, pthread_mutex_t* mutex, const timespec* abstime) {
205 return __pthread_cond_timedwait(cond, mutex, abstime, CLOCK_MONOTONIC);
pthread_internals.cpp 71 // Initialize 'ts' with the difference between 'abstime' and the current time
72 // according to 'clock'. Returns -1 if abstime already expired, or 0 otherwise.
73 int __timespec_from_absolute(timespec* ts, const timespec* abstime, clockid_t clock) {
75 ts->tv_sec = abstime->tv_sec - ts->tv_sec;
76 ts->tv_nsec = abstime->tv_nsec - ts->tv_nsec;
  /external/chromium_org/components/nacl/loader/nonsfi/
irt_futex.cc 36 const struct nacl_abi_timespec* abstime) {
39 if (abstime) {
45 NaClAbsTimeToRelTime(*abstime, now, &timeout);
  /external/compiler-rt/lib/tsan/rtl/
tsan_platform_mac.cc 96 void *abstime), void *c, void *m, void *abstime,
102 res = fn(c, m, abstime);
tsan_platform.h 200 void *abstime), void *c, void *m, void *abstime,
  /external/compiler-rt/lib/tsan/dd/
dd_interceptors.cc 126 const timespec *abstime) {
128 int res = REAL(pthread_rwlock_timedrdlock)(m, abstime);
151 const timespec *abstime) {
153 int res = REAL(pthread_rwlock_timedwrlock)(m, abstime);
197 const timespec *abstime) {
202 int res = REAL(pthread_cond_timedwait)(cond, m, abstime);
  /external/chromium_org/third_party/libusb/src/libusb/os/
threads_windows.h 81 const struct timespec *abstime);
  /external/bluetooth/bluedroid/gki/ulinux/
gki_ulinux.c 766 struct timespec abstime = { 0, 0 }; local
784 clock_gettime(CLOCK_MONOTONIC, &abstime);
789 abstime.tv_nsec += nano_sec;
790 if (abstime.tv_nsec > NSEC_PER_SEC)
792 abstime.tv_sec += (abstime.tv_nsec / NSEC_PER_SEC);
793 abstime.tv_nsec = abstime.tv_nsec % NSEC_PER_SEC;
795 abstime.tv_sec += sec;
798 &gki_cb.os.thread_evt_mutex[rtask], &abstime);
    [all...]
  /external/libnfc-nci/halimpl/bcm2079x/gki/ulinux/
gki_ulinux.c 644 struct timespec abstime = { 0, 0 }; local
692 // abstime.tv_sec = currSysTime.time;
693 // abstime.tv_nsec = NANOSEC_PER_MILLISEC * currSysTime.millitm;
694 clock_gettime(CLOCK_MONOTONIC, &abstime);
699 abstime.tv_nsec += nano_sec;
700 if (abstime.tv_nsec > NSEC_PER_SEC)
702 abstime.tv_sec += (abstime.tv_nsec / NSEC_PER_SEC);
703 abstime.tv_nsec = abstime.tv_nsec % NSEC_PER_SEC
    [all...]
  /external/libnfc-nci/src/gki/ulinux/
gki_ulinux.c 621 struct timespec abstime = { 0, 0 }; local
669 // abstime.tv_sec = currSysTime.time;
670 // abstime.tv_nsec = NANOSEC_PER_MILLISEC * currSysTime.millitm;
671 clock_gettime(CLOCK_MONOTONIC, &abstime);
676 abstime.tv_nsec += nano_sec;
677 if (abstime.tv_nsec > NSEC_PER_SEC)
679 abstime.tv_sec += (abstime.tv_nsec / NSEC_PER_SEC);
680 abstime.tv_nsec = abstime.tv_nsec % NSEC_PER_SEC
    [all...]
  /development/ndk/sources/android/libportable/arch-mips/
pthread.c 198 const struct timespec *abstime), (cond, mutex, abstime),
199 "(cond:%p, mutex:%p, abstime:%p)");
202 pthread_mutex_t *mutex, const struct timespec *abstime),
203 (cond, mutex, abstime), "(cond:%p, mutex:%p, abstime:%p)");
206 *mutex, const struct timespec *abstime),
207 (cond, mutex, abstime), "(cond:%p, mutex:%p, abstime:%p)");

Completed in 1165 milliseconds

1 2 3 4 5