ia64/xen-unstable

view extras/mini-os/include/waittypes.h @ 19836:d9890e67d2b7

tools: add SHAREDIR to buildmakevars2file

c/s 19818 dropped SHAREDIR from xen/util/path.py, which broke the "xm
new" command. This patch adds SHAREDIR back to the new
buildmakevars2file-closure function.

Signed-off-by: Ryan O'Connor <rjo@cs.ubc.ca>
author Keir Fraser <keir.fraser@citrix.com>
date Thu Jun 25 13:05:10 2009 +0100 (2009-06-25)
parents 3ab0e76fb8e2
children
line source
1 #ifndef __WAITTYPE_H__
2 #define __WAITTYPE_H__
4 #include <mini-os/list.h>
6 struct thread;
7 struct wait_queue
8 {
9 struct thread *thread;
10 struct minios_list_head thread_list;
11 };
13 struct wait_queue_head
14 {
15 /* TODO - lock required? */
16 struct minios_list_head thread_list;
17 };
19 #define DECLARE_WAIT_QUEUE_HEAD(name) \
20 struct wait_queue_head name = \
21 { .thread_list = { &(name).thread_list, &(name).thread_list} }
23 #define __WAIT_QUEUE_HEAD_INITIALIZER(name) { \
24 .thread_list = { &(name).thread_list, &(name).thread_list } }
26 #endif