Subversion Repositories HelenOS

Rev

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

Rev 2106 Rev 2109
Line 61... Line 61...
61
} waitq_t;
61
} waitq_t;
62
 
62
 
63
#define waitq_sleep(wq) \
63
#define waitq_sleep(wq) \
64
    waitq_sleep_timeout((wq), SYNCH_NO_TIMEOUT, SYNCH_FLAGS_NONE)
64
    waitq_sleep_timeout((wq), SYNCH_NO_TIMEOUT, SYNCH_FLAGS_NONE)
65
 
65
 
-
 
66
struct thread;
-
 
67
 
66
extern void waitq_initialize(waitq_t *wq);
68
extern void waitq_initialize(waitq_t *wq);
67
extern int waitq_sleep_timeout(waitq_t *wq, uint32_t usec, int flags);
69
extern int waitq_sleep_timeout(waitq_t *wq, uint32_t usec, int flags);
68
extern ipl_t waitq_sleep_prepare(waitq_t *wq);
70
extern ipl_t waitq_sleep_prepare(waitq_t *wq);
69
extern int waitq_sleep_timeout_unsafe(waitq_t *wq, uint32_t usec, int flags);
71
extern int waitq_sleep_timeout_unsafe(waitq_t *wq, uint32_t usec, int flags);
70
extern void waitq_sleep_finish(waitq_t *wq, int rc, ipl_t ipl);
72
extern void waitq_sleep_finish(waitq_t *wq, int rc, ipl_t ipl);
71
extern void waitq_wakeup(waitq_t *wq, bool all);
73
extern void waitq_wakeup(waitq_t *wq, bool all);
72
extern void _waitq_wakeup_unsafe(waitq_t *wq, bool all);
74
extern void _waitq_wakeup_unsafe(waitq_t *wq, bool all);
-
 
75
extern void waitq_interrupt_sleep(struct thread *t);
73
 
76
 
74
#endif
77
#endif
75
 
78
 
76
/** @}
79
/** @}
77
 */
80
 */