Subversion Repositories HelenOS

Rev

Rev 2089 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2089 Rev 2106
Line 44... Line 44...
44
} semaphore_t;
44
} semaphore_t;
45
 
45
 
46
#define semaphore_down(s) \
46
#define semaphore_down(s) \
47
    _semaphore_down_timeout((s), SYNCH_NO_TIMEOUT, SYNCH_FLAGS_NONE)
47
    _semaphore_down_timeout((s), SYNCH_NO_TIMEOUT, SYNCH_FLAGS_NONE)
48
#define semaphore_trydown(s) \
48
#define semaphore_trydown(s) \
49
    _semaphore_down_timeout((s), SYNCH_NO_TIMEOUT, SYNCH_FLAGS_NON_BLOCKING)    
49
    _semaphore_down_timeout((s), SYNCH_NO_TIMEOUT, SYNCH_FLAGS_NON_BLOCKING)
50
#define semaphore_down_timeout(s, usec) \
50
#define semaphore_down_timeout(s, usec) \
51
    _semaphore_down_timeout((s), (usec), SYNCH_FLAGS_NONE)
51
    _semaphore_down_timeout((s), (usec), SYNCH_FLAGS_NONE)
52
 
52
 
53
extern void semaphore_initialize(semaphore_t *s, int val);
53
extern void semaphore_initialize(semaphore_t *s, int val);
54
extern int _semaphore_down_timeout(semaphore_t *s, uint32_t usec, int flags);
54
extern int _semaphore_down_timeout(semaphore_t *s, uint32_t usec, int flags);