Lines Matching defs:timeout
617 // interruption or timeout). We need that lock anyway when unblocking a
713 acquire_sem_etc(sem_id id, int32 count, uint32 flags, bigtime_t timeout)
715 return switch_sem_etc(-1, id, count, flags, timeout);
728 uint32 flags, bigtime_t timeout)
771 if ((flags & B_RELATIVE_TIMEOUT) != 0 && timeout <= 0) {
772 // immediate timeout
774 } else if ((flags & B_ABSOLUTE_TIMEOUT) != 0 && timeout < 0) {
775 // absolute negative timeout
781 "flags: 0x%lx, timeout: %lld)", semToBeReleased, id, count, flags,
782 timeout);
808 timeout = B_INFINITE_TIMEOUT;
826 status_t acquireStatus = timeout == B_INFINITE_TIMEOUT
827 ? thread_block() : thread_block_with_timeout(flags, timeout);
1177 _user_acquire_sem_etc(sem_id id, int32 count, uint32 flags, bigtime_t timeout)
1179 syscall_restart_handle_timeout_pre(flags, timeout);
1182 flags | B_CAN_INTERRUPT | B_CHECK_PERMISSION, timeout);
1184 return syscall_restart_handle_timeout_post(error, timeout);
1203 bigtime_t timeout)
1206 syscall_restart_handle_timeout_pre(flags, timeout);
1209 flags | B_CAN_INTERRUPT | B_CHECK_PERMISSION, timeout);
1212 return syscall_restart_handle_timeout_post(error, timeout);