Changeset 25435
- Timestamp:
- 05/10/08 16:44:03 (6 days ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
haiku/trunk/src/system/kernel/posix/realtime_sem.cpp
r25362 r25435 16 16 #include <kernel.h> 17 17 #include <lock.h> 18 #include <real_time_clock.h>19 18 #include <syscall_restart.h> 20 19 #include <team.h> … … 741 740 error = acquire_sem_etc(id, 1, B_CAN_INTERRUPT, 0); 742 741 } else { 743 error = acquire_sem_etc(id, 1, B_CAN_INTERRUPT | B_ABSOLUTE_TIMEOUT, 744 timeout - rtc_boot_time()); 745 // The given absolute timeout is relative to the Epoch. 742 error = acquire_sem_etc(id, 1, 743 B_CAN_INTERRUPT | B_ABSOLUTE_REAL_TIME_TIMEOUT, timeout); 746 744 } 747 745 haiku/trunk/src/system/libroot/posix/pthread/pthread_cond.c
r22281 r25435 109 109 do { 110 110 status = acquire_sem_etc(cond->sem, 1, 111 timeout == B_INFINITE_TIMEOUT ? 0 : B_ABSOLUTE_TIMEOUT, timeout); 111 timeout == B_INFINITE_TIMEOUT ? 0 : B_ABSOLUTE_REAL_TIME_TIMEOUT, 112 timeout); 112 113 } while (status == B_OK && atomic_get(&cond->event_counter) == event); 113 114 haiku/trunk/src/system/libroot/posix/pthread/pthread_mutex.c
r17895 r25435 148 148 // this mutex is already locked by someone else, so we need 149 149 // to wait 150 status = acquire_sem_etc(mutex->sem, 1, timeout == B_INFINITE_TIMEOUT ? 0 : B_ABSOLUTE_TIMEOUT, timeout); 150 status = acquire_sem_etc(mutex->sem, 1, 151 timeout == B_INFINITE_TIMEOUT ? 0 : B_ABSOLUTE_REAL_TIME_TIMEOUT, 152 timeout); 151 153 } 152 154
