Rev 1416 | Rev 1702 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 1416 | Rev 1502 | ||
|---|---|---|---|
| Line 37... | Line 37... | ||
| 37 | struct condvar { |
37 | struct condvar { |
| 38 | waitq_t wq; |
38 | waitq_t wq; |
| 39 | }; |
39 | }; |
| 40 | 40 | ||
| 41 | #define condvar_wait(cv,mtx) \ |
41 | #define condvar_wait(cv,mtx) \ |
| 42 | _condvar_wait_timeout((cv),(mtx),SYNCH_NO_TIMEOUT) |
42 | _condvar_wait_timeout((cv),(mtx),SYNCH_NO_TIMEOUT,SYNCH_FLAGS_NONE) |
| 43 | #define condvar_wait_timeout(cv,mtx,usec) \ |
43 | #define condvar_wait_timeout(cv,mtx,usec) \ |
| 44 | _condvar_wait_timeout((cv),(mtx),(usec)) |
44 | _condvar_wait_timeout((cv),(mtx),(usec),SYNCH_FLAGS_NONE) |
| 45 | 45 | ||
| 46 | extern void condvar_initialize(condvar_t *cv); |
46 | extern void condvar_initialize(condvar_t *cv); |
| 47 | extern void condvar_signal(condvar_t *cv); |
47 | extern void condvar_signal(condvar_t *cv); |
| 48 | extern void condvar_broadcast(condvar_t *cv); |
48 | extern void condvar_broadcast(condvar_t *cv); |
| 49 | extern int _condvar_wait_timeout(condvar_t *cv, mutex_t *mtx, __u32 usec); |
49 | extern int _condvar_wait_timeout(condvar_t *cv, mutex_t *mtx, __u32 usec, int flags); |
| 50 | 50 | ||
| 51 | #endif |
51 | #endif |