Changes in kernel/generic/src/synch/mutex.c [d7da4284:2e4e706] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/synch/mutex.c
rd7da4284 r2e4e706 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 65 55 /** Acquire mutex. 66 56 * … … 77 67 * 78 68 */ 79 int _mutex_lock_timeout(mutex_t *mtx, uint32_t usec, unsignedint flags)69 int _mutex_lock_timeout(mutex_t *mtx, uint32_t usec, int flags) 80 70 { 81 71 int rc;
Note:
See TracChangeset
for help on using the changeset viewer.