From cc489fb3c4f2d523cba4b8b13d2bf83564de8254 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Tue, 6 May 2008 13:34:52 +0100 Subject: 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 --- extras/mini-os/include/lib.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'extras/mini-os/include/lib.h') 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 */ -- cgit v1.2.3