HomeSort by relevance Sort by last modified time
    Searched defs:abstime (Results 1 - 11 of 11) sorted by null

  /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);
  /external/chromium/base/synchronization/
condition_variable_posix.cc 49 struct timespec abstime; local
50 abstime.tv_sec = now.tv_sec + (usecs / Time::kMicrosecondsPerSecond);
51 abstime.tv_nsec = (now.tv_usec + (usecs % Time::kMicrosecondsPerSecond)) *
53 abstime.tv_sec += abstime.tv_nsec / Time::kNanosecondsPerSecond;
54 abstime.tv_nsec %= Time::kNanosecondsPerSecond;
55 DCHECK_GE(abstime.tv_sec, now.tv_sec); // Overflow paranoia
60 int rv = pthread_cond_timedwait(&condition_, user_mutex_, &abstime);
  /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/bluetooth/bluedroid/gki/ulinux/
gki_ulinux.c 910 struct timespec abstime = { 0, 0 }; local
928 clock_gettime(CLOCK_MONOTONIC, &abstime);
933 abstime.tv_nsec += nano_sec;
934 if (abstime.tv_nsec > NSEC_PER_SEC)
936 abstime.tv_sec += (abstime.tv_nsec / NSEC_PER_SEC);
937 abstime.tv_nsec = abstime.tv_nsec % NSEC_PER_SEC;
939 abstime.tv_sec += sec;
942 &gki_cb.os.thread_evt_mutex[rtask], &abstime);
    [all...]
  /external/libnfc-nci/halimpl/bcm2079x/gki/ulinux/
gki_ulinux.c 643 struct timespec abstime = { 0, 0 }; local
691 // abstime.tv_sec = currSysTime.time;
692 // abstime.tv_nsec = NANOSEC_PER_MILLISEC * currSysTime.millitm;
693 clock_gettime(CLOCK_MONOTONIC, &abstime);
698 abstime.tv_nsec += nano_sec;
699 if (abstime.tv_nsec > NSEC_PER_SEC)
701 abstime.tv_sec += (abstime.tv_nsec / NSEC_PER_SEC);
702 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...]
  /bionic/libc/bionic/
pthread.c 809 /* initialize 'ts' with the difference between 'abstime' and the current time
810 * according to 'clock'. Returns -1 if abstime already expired, or 0 otherwise.
813 __timespec_to_absolute(struct timespec* ts, const struct timespec* abstime, clockid_t clock)
816 ts->tv_sec = abstime->tv_sec - ts->tv_sec;
817 ts->tv_nsec = abstime->tv_nsec - ts->tv_nsec;
828 /* initialize 'abstime' to the current time according to 'clock' plus 'msecs'
832 __timespec_to_relative_msec(struct timespec* abstime, unsigned msecs, clockid_t clock)
834 clock_gettime(clock, abstime);
835 abstime->tv_sec += msecs/1000;
836 abstime->tv_nsec += (msecs%1000)*1000000
847 struct timespec abstime; local
    [all...]
  /libcore/luni/src/main/java/java/util/concurrent/locks/
AbstractQueuedLongSynchronizer.java 1866 long abstime = deadline.getTime(); local
    [all...]
AbstractQueuedSynchronizer.java 2094 long abstime = deadline.getTime(); local
    [all...]

Completed in 498 milliseconds