Changeset 116d1ef4 in mainline for generic/src/synch/futex.c
- Timestamp:
- 2006-06-02T12:26:50Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- d0c5901
- Parents:
- 01ebbdf
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
generic/src/synch/futex.c
r01ebbdf r116d1ef4 100 100 * @param uaddr Userspace address of the futex counter. 101 101 * @param usec If non-zero, number of microseconds this thread is willing to sleep. 102 * @param trydown If usec is zero and trydown is non-zero, conditional operation will be attempted.102 * @param flags Select mode of operation. 103 103 * 104 104 * @return One of ESYNCH_TIMEOUT, ESYNCH_OK_ATOMIC and ESYNCH_OK_BLOCKED. See synch.h. 105 105 * If there is no physical mapping for uaddr ENOENT is returned. 106 106 */ 107 __native sys_futex_sleep_timeout(__address uaddr, __u32 usec, int trydown)107 __native sys_futex_sleep_timeout(__address uaddr, __u32 usec, int flags) 108 108 { 109 109 futex_t *futex; … … 131 131 futex = futex_find(paddr); 132 132 133 return (__native) waitq_sleep_timeout(&futex->wq, usec, trydown);133 return (__native) waitq_sleep_timeout(&futex->wq, usec, flags | SYNCH_FLAGS_INTERRUPTIBLE); 134 134 } 135 135
Note:
See TracChangeset
for help on using the changeset viewer.