Changeset 04803bf in mainline for kernel/generic/include/synch/mutex.h
- Timestamp:
- 2011-03-21T22:00:17Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 143932e3
- Parents:
- b50b5af2 (diff), 7308e84 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - File:
-
- 1 edited
-
kernel/generic/include/synch/mutex.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/synch/mutex.h
rb50b5af2 r04803bf 36 36 #define KERN_MUTEX_H_ 37 37 38 #include < arch/types.h>38 #include <typedefs.h> 39 39 #include <synch/semaphore.h> 40 40 #include <synch/synch.h> … … 50 50 } mutex_t; 51 51 52 #define mutex_lock(mtx) \52 #define mutex_lock(mtx) \ 53 53 _mutex_lock_timeout((mtx), SYNCH_NO_TIMEOUT, SYNCH_FLAGS_NONE) 54 #define mutex_trylock(mtx) \ 54 55 #define mutex_trylock(mtx) \ 55 56 _mutex_lock_timeout((mtx), SYNCH_NO_TIMEOUT, SYNCH_FLAGS_NON_BLOCKING) 56 #define mutex_lock_timeout(mtx, usec) \ 57 58 #define mutex_lock_timeout(mtx, usec) \ 57 59 _mutex_lock_timeout((mtx), (usec), SYNCH_FLAGS_NON_BLOCKING) 58 60 59 61 extern void mutex_initialize(mutex_t *, mutex_type_t); 60 extern int _mutex_lock_timeout(mutex_t *, uint32_t, int); 62 extern bool mutex_locked(mutex_t *); 63 extern int _mutex_lock_timeout(mutex_t *, uint32_t, unsigned int); 61 64 extern void mutex_unlock(mutex_t *); 62 65
Note:
See TracChangeset
for help on using the changeset viewer.
