Lines Matching refs:timeout

1340 common_snooze_etc(bigtime_t timeout, clockid_t clockID, uint32 flags,
1363 status_t status = thread_block_with_timeout_locked(flags, timeout);
1372 startTime + timeout - system_time(), (bigtime_t)0);
1376 *_remainingTime = std::max(timeout - now, (bigtime_t)0);
2481 wait_for_thread_etc(thread_id id, uint32 flags, bigtime_t timeout,
2548 status_t status = acquire_sem_etc(exitSem, 1, flags, timeout);
2557 // We were probably interrupted or the timeout occurred; we need to
2872 /*! Blocks the current thread with a timeout.
2878 thread_block_with_timeout(uint32 timeoutFlags, bigtime_t timeout)
2881 return thread_block_with_timeout_locked(timeoutFlags, timeout);
2885 /*! Blocks the current thread with a timeout.
2887 The thread is blocked until someone else unblock it or the specified timeout
2896 \param timeoutFlags The standard timeout flags:
2897 - \c B_RELATIVE_TIMEOUT: \a timeout specifies the time to wait.
2898 - \c B_ABSOLUTE_TIMEOUT: \a timeout specifies the absolute end time when
2899 the timeout shall occur.
2901 is specified, too. Specifies that \a timeout is a real time, not a
2904 specified, an infinite timeout is implied and the function behaves like
2907 uses \c B_INTERRUPTED. When the timeout occurred, \c B_TIMED_OUT is
2913 thread_block_with_timeout_locked(uint32 timeoutFlags, bigtime_t timeout)
2921 && timeout != B_INFINITE_TIMEOUT;
2940 add_timer(&thread->wait.unblock_timer, &thread_block_timeout, timeout,
3226 snooze_etc(bigtime_t timeout, int timebase, uint32 flags)
3228 return common_snooze_etc(timeout, timebase, flags, NULL);
3234 snooze(bigtime_t timeout)
3236 return snooze_etc(timeout, B_SYSTEM_TIMEBASE, B_RELATIVE_TIMEOUT);
3244 snooze_until(bigtime_t timeout, int timebase)
3246 return snooze_etc(timeout, timebase, B_ABSOLUTE_TIMEOUT);
3429 _user_snooze_etc(bigtime_t timeout, int timebase, uint32 flags,
3436 bigtime_t timeout;
3448 timeout = restartParameters->timeout;
3454 // not restarted yet and the flags indicate a relative timeout
3462 // get the current time and make the timeout absolute
3468 timeout += now;
3471 if (timeout < 0)
3472 timeout = B_INFINITE_TIMEOUT;
3481 status_t error = common_snooze_etc(timeout, timebase,
3498 restartParameters->timeout = timeout;
3638 _user_block_thread(uint32 flags, bigtime_t timeout)
3640 syscall_restart_handle_timeout_pre(flags, timeout);
3656 status_t status = thread_block_with_timeout_locked(flags, timeout);
3672 return syscall_restart_handle_timeout_post(status, timeout);