Changes in kernel/generic/include/synch/semaphore.h [b7fd2a0:83dab11] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/synch/semaphore.h
rb7fd2a0 r83dab11 36 36 #define KERN_SEMAPHORE_H_ 37 37 38 #include <errno.h>39 38 #include <stdint.h> 40 39 #include <synch/waitq.h> … … 55 54 56 55 #define semaphore_down_interruptable(s) \ 57 ( _semaphore_down_timeout((s), SYNCH_NO_TIMEOUT, \58 SYNCH_FLAGS_INTERRUPTIBLE) != EINTR)56 (ESYNCH_INTERRUPTED != _semaphore_down_timeout((s), SYNCH_NO_TIMEOUT, \ 57 SYNCH_FLAGS_INTERRUPTIBLE)) 59 58 60 59 extern void semaphore_initialize(semaphore_t *, int); 61 extern errno_t _semaphore_down_timeout(semaphore_t *, uint32_t, unsigned int);60 extern int _semaphore_down_timeout(semaphore_t *, uint32_t, unsigned int); 62 61 extern void semaphore_up(semaphore_t *); 63 62 extern int semaphore_count_get(semaphore_t *);
Note:
See TracChangeset
for help on using the changeset viewer.