Searched refs:abstime (Results 1 – 1 of 1) sorted by relevance
408 struct timespec abstime; in Semaphore_pend_handle() local409 abstime.tv_nsec = 0; in Semaphore_pend_handle()410 abstime.tv_sec = 0; in Semaphore_pend_handle()414 clock_gettime(CLOCK_REALTIME, &abstime); in Semaphore_pend_handle()415 if(abstime.tv_nsec < 0) in Semaphore_pend_handle()417 abstime.tv_sec = timeout; in Semaphore_pend_handle()418 return (sem_timedwait(pSemHandle, &abstime)); in Semaphore_pend_handle()422 abstime.tv_sec += timeout / 1000; in Semaphore_pend_handle()423 abstime.tv_nsec += (timeout % 1000) * 1000000; in Semaphore_pend_handle()425 abstime.tv_sec += (abstime.tv_nsec / 1000000000); in Semaphore_pend_handle()[all …]