Changeset 116d1ef4 in mainline for generic/src/synch/condvar.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/condvar.c
r01ebbdf r116d1ef4 75 75 * @param mtx Mutex. 76 76 * @param usec Timeout value in microseconds. 77 * @param flags Select mode of operation. 77 78 * 78 * For exact description of meaning of possible values of usec, 79 * see comment for waitq_sleep_timeout(). 79 * For exact description of meaning of possible combinations 80 * of usec and flags, see comment for waitq_sleep_timeout(). 81 * Note that when SYNCH_FLAGS_NON_BLOCKING is specified here, 82 * ESYNCH_WOULD_BLOCK is always returned. 80 83 * 81 84 * @return See comment for waitq_sleep_timeout(). 82 85 */ 83 int _condvar_wait_timeout(condvar_t *cv, mutex_t *mtx, __u32 usec )86 int _condvar_wait_timeout(condvar_t *cv, mutex_t *mtx, __u32 usec, int flags) 84 87 { 85 88 int rc; … … 90 93 91 94 cv->wq.missed_wakeups = 0; /* Enforce blocking. */ 92 rc = waitq_sleep_timeout_unsafe(&cv->wq, usec, SYNCH_BLOCKING);95 rc = waitq_sleep_timeout_unsafe(&cv->wq, usec, flags); 93 96 94 97 mutex_lock(mtx);
Note:
See TracChangeset
for help on using the changeset viewer.