Changeset 63e27ef in mainline for kernel/generic/src/synch/mutex.c
- Timestamp:
- 2017-06-19T21:47:42Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- deacc58d
- Parents:
- 7354b5e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/synch/mutex.c
r7354b5e r63e27ef 36 36 */ 37 37 38 #include <assert.h> 38 39 #include <synch/mutex.h> 39 40 #include <synch/semaphore.h> 40 #include <debug.h>41 41 #include <arch.h> 42 42 #include <stacktrace.h> … … 88 88 rc = _semaphore_down_timeout(&mtx->sem, usec, flags); 89 89 } else { 90 ASSERT((mtx->type == MUTEX_ACTIVE) || (!THREAD));91 ASSERT(usec == SYNCH_NO_TIMEOUT);92 ASSERT(!(flags & SYNCH_FLAGS_INTERRUPTIBLE));90 assert((mtx->type == MUTEX_ACTIVE) || (!THREAD)); 91 assert(usec == SYNCH_NO_TIMEOUT); 92 assert(!(flags & SYNCH_FLAGS_INTERRUPTIBLE)); 93 93 94 94 unsigned int cnt = 0;
Note:
See TracChangeset
for help on using the changeset viewer.