Changeset 2d22049 in mainline
- Timestamp:
- 2006-06-02T12:29:08Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- bd929cfb
- Parents:
- bf9afa07
- Location:
- libc
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
libc/generic/async.c
rbf9afa07 r2d22049 508 508 futex_up(&async_futex); 509 509 510 callid = ipc_wait_cycle(&call, timeout, SYNCH_ BLOCKING);510 callid = ipc_wait_cycle(&call, timeout, SYNCH_FLAGS_NONE); 511 511 512 512 if (!callid) { -
libc/generic/futex.c
rbf9afa07 r2d22049 82 82 int futex_down(atomic_t *futex) 83 83 { 84 return futex_down_timeout(futex, SYNCH_NO_TIMEOUT, SYNCH_ BLOCKING);84 return futex_down_timeout(futex, SYNCH_NO_TIMEOUT, SYNCH_FLAGS_NONE); 85 85 } 86 86 87 87 int futex_trydown(atomic_t *futex) 88 88 { 89 return futex_down_timeout(futex, SYNCH_NO_TIMEOUT, SYNCH_ NON_BLOCKING);89 return futex_down_timeout(futex, SYNCH_NO_TIMEOUT, SYNCH_FLAGS_NON_BLOCKING); 90 90 } 91 91 … … 94 94 * @param futex Futex. 95 95 * @param usec Microseconds to wait. Zero value means sleep without timeout. 96 * @param trydown If usec is zero and trydown is non-zero, only conditional96 * @param flags Select mode of operation. See comment for waitq_sleep_timeout(). 97 97 * 98 98 * @return ENOENT if there is no such virtual address. One of ESYNCH_OK_ATOMIC … … 101 101 * operation could not be carried out atomically (if requested so). 102 102 */ 103 int futex_down_timeout(atomic_t *futex, uint32_t usec, int trydown)103 int futex_down_timeout(atomic_t *futex, uint32_t usec, int flags) 104 104 { 105 105 int rc; 106 106 107 107 while (atomic_predec(futex) < 0) { 108 rc = __SYSCALL3(SYS_FUTEX_SLEEP, (sysarg_t) &futex->count, (sysarg_t) usec, (sysarg_t) trydown);108 rc = __SYSCALL3(SYS_FUTEX_SLEEP, (sysarg_t) &futex->count, (sysarg_t) usec, (sysarg_t) flags); 109 109 110 110 switch (rc) { -
libc/generic/ipc.c
rbf9afa07 r2d22049 361 361 362 362 do { 363 callid = ipc_wait_cycle(call, usec, SYNCH_ BLOCKING);363 callid = ipc_wait_cycle(call, usec, SYNCH_FLAGS_NONE); 364 364 } while (callid & IPC_CALLID_ANSWERED); 365 365 … … 378 378 379 379 do { 380 callid = ipc_wait_cycle(call, SYNCH_NO_TIMEOUT, SYNCH_ NON_BLOCKING);380 callid = ipc_wait_cycle(call, SYNCH_NO_TIMEOUT, SYNCH_FLAGS_NON_BLOCKING); 381 381 } while (callid & IPC_CALLID_ANSWERED); 382 382 -
libc/include/futex.h
rbf9afa07 r2d22049 38 38 extern int futex_down(atomic_t *futex); 39 39 extern int futex_trydown(atomic_t *futex); 40 extern int futex_down_timeout(atomic_t *futex, uint32_t usec, int trydown);40 extern int futex_down_timeout(atomic_t *futex, uint32_t usec, int flags); 41 41 extern int futex_up(atomic_t *futex); 42 42
Note:
See TracChangeset
for help on using the changeset viewer.