Changeset d7da4284 in mainline for kernel/generic/src/synch/mutex.c
- Timestamp:
- 2010-05-25T21:34:41Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ffe4a87
- Parents:
- 5df7928
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/synch/mutex.c
r5df7928 rd7da4284 53 53 } 54 54 55 /** Find out whether the mutex is currently locked. 56 * 57 * @param mtx Mutex. 58 * @return True if the mutex is locked, false otherwise. 59 */ 60 bool mutex_locked(mutex_t *mtx) 61 { 62 return semaphore_count_get(&mtx->sem) <= 0; 63 } 64 55 65 /** Acquire mutex. 56 66 *
Note:
See TracChangeset
for help on using the changeset viewer.