Changeset e994898 in mainline
- Timestamp:
- 2023-02-09T17:42:22Z (21 months ago)
- Branches:
- master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- daadfa6
- Parents:
- 4c78104
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/synch/mutex.c
r4c78104 re994898 66 66 bool mutex_locked(mutex_t *mtx) 67 67 { 68 bool success= semaphore_trydown(&mtx->sem);69 if ( success) {68 errno_t rc = semaphore_trydown(&mtx->sem); 69 if (rc == EOK) { 70 70 semaphore_up(&mtx->sem); 71 71 } 72 return !success;72 return rc != EOK; 73 73 } 74 74
Note:
See TracChangeset
for help on using the changeset viewer.