Changes in kernel/generic/src/synch/futex.c [b59318e:11b285d] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/synch/futex.c
rb59318e r11b285d 398 398 } 399 399 400 /** Sleep in futex wait queue with a timeout. 401 * If the sleep times out or is interrupted, the next wakeup is ignored. 402 * The userspace portion of the call must handle this condition. 403 * 404 * @param uaddr Userspace address of the futex counter. 405 * @param timeout Maximum number of useconds to sleep. 0 means no limit. 400 /** Sleep in futex wait queue. 401 * 402 * @param uaddr Userspace address of the futex counter. 406 403 * 407 404 * @return If there is no physical mapping for uaddr ENOENT is … … 409 406 * waitq_sleep_timeout(). 410 407 */ 411 sys_errno_t sys_futex_sleep(uintptr_t uaddr , uintptr_t timeout)408 sys_errno_t sys_futex_sleep(uintptr_t uaddr) 412 409 { 413 410 futex_t *futex = get_futex(uaddr); … … 420 417 #endif 421 418 422 errno_t rc = waitq_sleep_timeout( &futex->wq, timeout,423 SYNCH_FLAGS_INTERRUPTIBLE | SYNCH_FLAGS_FUTEX, NULL);419 errno_t rc = waitq_sleep_timeout( 420 &futex->wq, 0, SYNCH_FLAGS_INTERRUPTIBLE, NULL); 424 421 425 422 #ifdef CONFIG_UDEBUG
Note:
See TracChangeset
for help on using the changeset viewer.