Changeset 116d1ef4 in mainline for generic/include/synch/semaphore.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/semaphore.h
r01ebbdf r116d1ef4 41 41 42 42 #define semaphore_down(s) \ 43 _semaphore_down_timeout((s),SYNCH_NO_TIMEOUT,SYNCH_ BLOCKING)43 _semaphore_down_timeout((s),SYNCH_NO_TIMEOUT,SYNCH_FLAGS_NONE) 44 44 #define semaphore_trydown(s) \ 45 _semaphore_down_timeout((s),SYNCH_NO_TIMEOUT,SYNCH_ NON_BLOCKING)45 _semaphore_down_timeout((s),SYNCH_NO_TIMEOUT,SYNCH_FLAGS_NON_BLOCKING) 46 46 #define semaphore_down_timeout(s,usec) \ 47 _semaphore_down_timeout((s),(usec),SYNCH_ NON_BLOCKING)47 _semaphore_down_timeout((s),(usec),SYNCH_FLAGS_NONE) 48 48 49 49 extern void semaphore_initialize(semaphore_t *s, int val); 50 extern int _semaphore_down_timeout(semaphore_t *s, __u32 usec, int trydown);50 extern int _semaphore_down_timeout(semaphore_t *s, __u32 usec, int flags); 51 51 extern void semaphore_up(semaphore_t *s); 52 52 53 53 #endif 54
Note:
See TracChangeset
for help on using the changeset viewer.