HAMMER 60I/Many: Mirroring
[dragonfly.git] / sys / sys / xwait.h
blobb392a0fd975823401bd54fe555ac1a5da582fcd9
1 /*
2 * SYS/XWAIT.H
4 * $DragonFly: src/sys/sys/xwait.h,v 1.2 2006/05/20 02:42:13 dillon Exp $
5 */
7 #ifndef _SYS_XWAIT_H_
8 #define _SYS_XWAIT_H_
10 #ifndef _SYS_QUEUE_H_
11 #include <sys/queue.h>
12 #endif
14 struct proc;
17 * XWAIT structure for xsleep()/xwakeup()
20 struct xwait {
21 int gen;
22 TAILQ_HEAD(,proc) waitq;
25 static __inline void
26 xupdate_gen(struct xwait *w)
28 ++w->gen;
31 #endif