projects
/
dragonfly.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
<malloc.h>: Restrict support for <malloc.h> to !defined(__STDC__).
[dragonfly.git]
/
sys
/
sys
/
xwait.h
1
/*
2
* SYS/XWAIT.H
3
*
4
* $DragonFly: src/sys/sys/xwait.h,v 1.2 2006/05/20 02:42:13 dillon Exp $
5
*/
6
7
#ifndef _SYS_XWAIT_H_
8
#define _SYS_XWAIT_H_
9
10
#ifndef _SYS_QUEUE_H_
11
#include <sys/queue.h>
12
#endif
13
14
struct proc;
15
16
/*
17
* XWAIT structure for xsleep()/xwakeup()
18
*/
19
20
struct xwait {
21
int gen;
22
TAILQ_HEAD(,proc) waitq;
23
};
24
25
static __inline void
26
xupdate_gen(struct xwait *w)
27
{
28
++w->gen;
29
}
30
31
#endif
32