Lines Matching defs:timeout
647 // interruption or timeout). We need that lock anyway when unblocking a
746 acquire_sem_etc(sem_id id, int32 count, uint32 flags, bigtime_t timeout)
748 return switch_sem_etc(-1, id, count, flags, timeout);
761 uint32 flags, bigtime_t timeout)
804 if ((flags & B_RELATIVE_TIMEOUT) != 0 && timeout <= 0) {
805 // immediate timeout
808 } else if ((flags & B_ABSOLUTE_TIMEOUT) != 0 && timeout < 0) {
809 // absolute negative timeout
816 "flags: 0x%lx, timeout: %lld)", semToBeReleased, id, count, flags,
817 timeout);
838 timeout = B_INFINITE_TIMEOUT;
859 status_t acquireStatus = timeout == B_INFINITE_TIMEOUT
861 : thread_block_with_timeout_locked(flags, timeout);
1240 _user_acquire_sem_etc(sem_id id, int32 count, uint32 flags, bigtime_t timeout)
1242 syscall_restart_handle_timeout_pre(flags, timeout);
1245 flags | B_CAN_INTERRUPT | B_CHECK_PERMISSION, timeout);
1247 return syscall_restart_handle_timeout_post(error, timeout);
1266 bigtime_t timeout)
1269 syscall_restart_handle_timeout_pre(flags, timeout);
1272 flags | B_CAN_INTERRUPT | B_CHECK_PERMISSION, timeout);
1275 return syscall_restart_handle_timeout_post(error, timeout);