Changeset 31d8e10 in mainline for kernel/generic/include/synch/mutex.h
- Timestamp:
- 2007-04-05T16:09:49Z (17 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 547fa39
- Parents:
- 879585a3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/synch/mutex.h
r879585a3 r31d8e10 45 45 46 46 #define mutex_lock(mtx) \ 47 _mutex_lock_timeout((mtx), SYNCH_NO_TIMEOUT,SYNCH_FLAGS_NONE)47 _mutex_lock_timeout((mtx), SYNCH_NO_TIMEOUT, SYNCH_FLAGS_NONE) 48 48 #define mutex_trylock(mtx) \ 49 _mutex_lock_timeout((mtx),SYNCH_NO_TIMEOUT,SYNCH_FLAGS_NON_BLOCKING) 50 #define mutex_lock_timeout(mtx,usec) \ 51 _mutex_lock_timeout((mtx),(usec),SYNCH_FLAGS_NON_BLOCKING) 52 #define mutex_lock_active(mtx) \ 53 while (mutex_trylock((mtx)) != ESYNCH_OK_ATOMIC) 49 _mutex_lock_timeout((mtx), SYNCH_NO_TIMEOUT, SYNCH_FLAGS_NON_BLOCKING) 50 #define mutex_lock_timeout(mtx, usec) \ 51 _mutex_lock_timeout((mtx), (usec), SYNCH_FLAGS_NON_BLOCKING) 54 52 55 53 extern void mutex_initialize(mutex_t *mtx);
Note:
See TracChangeset
for help on using the changeset viewer.