aboutsummaryrefslogtreecommitdiffstats
path: root/extras/mini-os/include/lib.h
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2008-05-06 13:34:52 +0100
committerKeir Fraser <keir.fraser@citrix.com>2008-05-06 13:34:52 +0100
commitcc489fb3c4f2d523cba4b8b13d2bf83564de8254 (patch)
treec1c5303e97b6a35ce3693489d27c1dd378593e4e /extras/mini-os/include/lib.h
parentea1c7a7225787dcda405a1a75a1e982624f1ef1a (diff)
downloadxen-cc489fb3c4f2d523cba4b8b13d2bf83564de8254.tar.gz
xen-cc489fb3c4f2d523cba4b8b13d2bf83564de8254.tar.bz2
xen-cc489fb3c4f2d523cba4b8b13d2bf83564de8254.zip
minios: fix thread safety of xenbus watches by requiring callers to
provide their own queue of events, because else we can not dispatch to watchers running in parallel. Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
Diffstat (limited to 'extras/mini-os/include/lib.h')
-rw-r--r--extras/mini-os/include/lib.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/extras/mini-os/include/lib.h b/extras/mini-os/include/lib.h
index e5997d4574..96e17ecd4c 100644
--- a/extras/mini-os/include/lib.h
+++ b/extras/mini-os/include/lib.h
@@ -178,7 +178,7 @@ extern struct file {
struct {
/* To each xenbus FD is associated a queue of watch events for this
* FD. */
- struct xenbus_event *volatile events;
+ xenbus_event_queue events;
} xenbus;
};
volatile int read; /* maybe available for read */