Changeset 5110d0a in mainline for kernel/generic/include/synch/semaphore.h
- Timestamp:
- 2023-02-07T16:02:50Z (15 months ago)
- Branches:
- master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7c5320c
- Parents:
- 8a55346
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2023-02-06 16:44:26)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2023-02-07 16:02:50)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/synch/semaphore.h
r8a55346 r5110d0a 45 45 } semaphore_t; 46 46 47 #define semaphore_down(s) \48 _semaphore_down_timeout((s), SYNCH_NO_TIMEOUT, SYNCH_FLAGS_NONE)49 50 #define semaphore_trydown(s) \51 _semaphore_down_timeout((s), SYNCH_NO_TIMEOUT, SYNCH_FLAGS_NON_BLOCKING)52 53 #define semaphore_down_timeout(s, usec) \54 _semaphore_down_timeout((s), (usec), SYNCH_FLAGS_NONE)55 56 #define semaphore_down_interruptable(s) \57 (_semaphore_down_timeout((s), SYNCH_NO_TIMEOUT, \58 SYNCH_FLAGS_INTERRUPTIBLE) != EINTR)59 60 47 extern void semaphore_initialize(semaphore_t *, int); 61 extern errno_t _semaphore_down_timeout(semaphore_t *, uint32_t, unsigned int); 48 extern errno_t _semaphore_down_timeout(semaphore_t *, uint32_t, unsigned); 49 extern errno_t semaphore_down_timeout(semaphore_t *, uint32_t); 50 extern errno_t semaphore_trydown(semaphore_t *); 51 extern void semaphore_down(semaphore_t *); 62 52 extern void semaphore_up(semaphore_t *); 63 53 extern int semaphore_count_get(semaphore_t *);
Note:
See TracChangeset
for help on using the changeset viewer.