Changes in kernel/generic/src/synch/futex.c [82cbf8c6:897fd8f1] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/synch/futex.c
r82cbf8c6 r897fd8f1 395 395 * 396 396 * @return If there is no physical mapping for uaddr ENOENT is 397 * returned. Otherwise returns a wait result as defined in398 * synch.h.397 * returned. Otherwise returns the return value of 398 * waitq_sleep_timeout(). 399 399 */ 400 400 sysarg_t sys_futex_sleep(uintptr_t uaddr) … … 409 409 #endif 410 410 411 int rc = waitq_sleep_timeout(&futex->wq, 0, SYNCH_FLAGS_INTERRUPTIBLE); 411 int rc = waitq_sleep_timeout( 412 &futex->wq, 0, SYNCH_FLAGS_INTERRUPTIBLE, NULL); 412 413 413 414 #ifdef CONFIG_UDEBUG … … 430 431 if (futex) { 431 432 waitq_wakeup(&futex->wq, WAKEUP_FIRST); 432 return 0;433 return EOK; 433 434 } else { 434 435 return (sysarg_t) ENOENT;
Note:
See TracChangeset
for help on using the changeset viewer.