Changeset 116d1ef4 in mainline for generic/src/synch/mutex.c
- Timestamp:
- 2006-06-02T12:26:50Z (19 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/mutex.c
r01ebbdf r116d1ef4 54 54 * @param mtx Mutex. 55 55 * @param usec Timeout in microseconds. 56 * @param trylock Switches between blocking and non-blocking mode.56 * @param flags Specify mode of operation. 57 57 * 58 58 * For exact description of possible combinations of 59 * usec and trylock, see comment for waitq_sleep_timeout().59 * usec and flags, see comment for waitq_sleep_timeout(). 60 60 * 61 61 * @return See comment for waitq_sleep_timeout(). 62 62 */ 63 int _mutex_lock_timeout(mutex_t *mtx, __u32 usec, int trylock)63 int _mutex_lock_timeout(mutex_t *mtx, __u32 usec, int flags) 64 64 { 65 return _semaphore_down_timeout(&mtx->sem, usec, trylock);65 return _semaphore_down_timeout(&mtx->sem, usec, flags); 66 66 } 67 67 … … 76 76 semaphore_up(&mtx->sem); 77 77 } 78
Note:
See TracChangeset
for help on using the changeset viewer.