Changeset 46c20c8 in mainline for kernel/generic/include/synch/semaphore.h
- Timestamp:
- 2010-11-26T20:08:10Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 45df59a
- Parents:
- fb150d78 (diff), ffdd2b9 (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/semaphore.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/synch/semaphore.h
rfb150d78 r46c20c8 36 36 #define KERN_SEMAPHORE_H_ 37 37 38 #include < arch/types.h>38 #include <typedefs.h> 39 39 #include <synch/waitq.h> 40 40 #include <synch/synch.h> … … 46 46 #define semaphore_down(s) \ 47 47 _semaphore_down_timeout((s), SYNCH_NO_TIMEOUT, SYNCH_FLAGS_NONE) 48 48 49 #define semaphore_trydown(s) \ 49 50 _semaphore_down_timeout((s), SYNCH_NO_TIMEOUT, SYNCH_FLAGS_NON_BLOCKING) 51 50 52 #define semaphore_down_timeout(s, usec) \ 51 53 _semaphore_down_timeout((s), (usec), SYNCH_FLAGS_NONE) 52 54 53 extern void semaphore_initialize(semaphore_t *s, int val); 54 extern int _semaphore_down_timeout(semaphore_t *s, uint32_t usec, int flags); 55 extern void semaphore_up(semaphore_t *s); 55 extern void semaphore_initialize(semaphore_t *, int); 56 extern int _semaphore_down_timeout(semaphore_t *, uint32_t, unsigned int); 57 extern void semaphore_up(semaphore_t *); 58 extern int semaphore_count_get(semaphore_t *); 56 59 57 60 #endif
Note:
See TracChangeset
for help on using the changeset viewer.
