Subversion Repositories HelenOS

Rev

Rev 534 | Rev 1702 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 534 Rev 1502
Line 38... Line 38...
38
{
38
{
39
    waitq_t wq;
39
    waitq_t wq;
40
};
40
};
41
 
41
 
42
#define semaphore_down(s) \
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
#define semaphore_trydown(s) \
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
#define semaphore_down_timeout(s,usec) \
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
extern void semaphore_initialize(semaphore_t *s, int val);
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
extern void semaphore_up(semaphore_t *s);
51
extern void semaphore_up(semaphore_t *s);
52
 
52
 
53
#endif
53
#endif
-
 
54