Changeset 08a19ba in mainline for kernel/generic/src/synch/condvar.c
- Timestamp:
- 2008-06-23T18:44:48Z (17 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 1a1744e
- Parents:
- deaf8d5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/synch/condvar.c
rdeaf8d5 r08a19ba 44 44 /** Initialize condition variable. 45 45 * 46 * @param cv 46 * @param cv Condition variable. 47 47 */ 48 48 void condvar_initialize(condvar_t *cv) … … 51 51 } 52 52 53 /** 54 * Signal the condition has become true 55 * to the first waiting thread by waking it up. 53 /** Signal the condition has become true to the first waiting thread by waking 54 * it up. 56 55 * 57 * @param cv 56 * @param cv Condition variable. 58 57 */ 59 58 void condvar_signal(condvar_t *cv) … … 62 61 } 63 62 64 /** 65 * Signal the condition has become true 66 * to all waiting threads by waking them up. 63 /** Signal the condition has become true to all waiting threads by waking 64 * them up. 67 65 * 68 * @param cv 66 * @param cv Condition variable. 69 67 */ 70 68 void condvar_broadcast(condvar_t *cv) … … 75 73 /** Wait for the condition becoming true. 76 74 * 77 * @param cv 78 * @param mtx 79 * @param usec 80 * @param flags 75 * @param cv Condition variable. 76 * @param mtx Mutex. 77 * @param usec Timeout value in microseconds. 78 * @param flags Select mode of operation. 81 79 * 82 * For exact description of meaning of possible combinations 83 * of usec and flags, see comment for waitq_sleep_timeout().84 * Note that when SYNCH_FLAGS_NON_BLOCKING is specified here,85 * ESYNCH_WOULD_BLOCK is alwaysreturned.80 * For exact description of meaning of possible combinations of usec and flags, 81 * see comment for waitq_sleep_timeout(). Note that when 82 * SYNCH_FLAGS_NON_BLOCKING is specified here, ESYNCH_WOULD_BLOCK is always 83 * returned. 86 84 * 87 * @return 85 * @return See comment for waitq_sleep_timeout(). 88 86 */ 89 87 int _condvar_wait_timeout(condvar_t *cv, mutex_t *mtx, uint32_t usec, int flags)
Note:
See TracChangeset
for help on using the changeset viewer.