Subversion Repositories HelenOS-historic

Rev

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

Rev 1 Rev 125
Line 34... Line 34...
34
#include <synch/waitq.h>
34
#include <synch/waitq.h>
35
#include <synch/synch.h>
35
#include <synch/synch.h>
36
 
36
 
37
struct semaphore
37
struct semaphore
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_BLOCKING)
44
#define semaphore_trydown(s) \
44
#define semaphore_trydown(s) \