Changeset 116d1ef4 in mainline for generic/include/synch/mutex.h
- Timestamp:
- 2006-06-02T12:26:50Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- d0c5901
- Parents:
- 01ebbdf
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
generic/include/synch/mutex.h
r01ebbdf r116d1ef4 40 40 41 41 #define mutex_lock(mtx) \ 42 _mutex_lock_timeout((mtx),SYNCH_NO_TIMEOUT,SYNCH_ BLOCKING)42 _mutex_lock_timeout((mtx),SYNCH_NO_TIMEOUT,SYNCH_FLAGS_NONE) 43 43 #define mutex_trylock(mtx) \ 44 _mutex_lock_timeout((mtx),SYNCH_NO_TIMEOUT,SYNCH_ NON_BLOCKING)44 _mutex_lock_timeout((mtx),SYNCH_NO_TIMEOUT,SYNCH_FLAGS_NON_BLOCKING) 45 45 #define mutex_lock_timeout(mtx,usec) \ 46 _mutex_lock_timeout((mtx),(usec),SYNCH_ NON_BLOCKING)46 _mutex_lock_timeout((mtx),(usec),SYNCH_FLAGS_NON_BLOCKING) 47 47 #define mutex_lock_active(mtx) \ 48 48 while (mutex_trylock((mtx)) != ESYNCH_OK_ATOMIC) 49 49 50 50 extern void mutex_initialize(mutex_t *mtx); 51 extern int _mutex_lock_timeout(mutex_t *mtx, __u32 usec, int trylock);51 extern int _mutex_lock_timeout(mutex_t *mtx, __u32 usec, int flags); 52 52 extern void mutex_unlock(mutex_t *mtx); 53 53
Note:
See TracChangeset
for help on using the changeset viewer.