diff options
author | cl349@firebug.cl.cam.ac.uk <cl349@firebug.cl.cam.ac.uk> | 2005-07-26 15:20:09 +0000 |
---|---|---|
committer | cl349@firebug.cl.cam.ac.uk <cl349@firebug.cl.cam.ac.uk> | 2005-07-26 15:20:09 +0000 |
commit | ef071736546681facfdc36617632bdafd6c4d4a4 (patch) | |
tree | 49b258982283aa0aa0b9017834b6dbffa92b4927 /tools/xenstore/xenstored_watch.h | |
parent | e04c630cb24b65d871f061074bea23174cadf841 (diff) | |
download | xen-ef071736546681facfdc36617632bdafd6c4d4a4.tar.gz xen-ef071736546681facfdc36617632bdafd6c4d4a4.tar.bz2 xen-ef071736546681facfdc36617632bdafd6c4d4a4.zip |
Change watches: operations block until everyone has acked.
Watch events are no longer sent to self
Watches no longer take a priority
async and asyncwait commands for xs_test, now we need to continue
despite blocking ops.
Print test name at end of verbose run on failure.
Use --trace-file arg to xenstored when testing
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
Diffstat (limited to 'tools/xenstore/xenstored_watch.h')
-rw-r--r-- | tools/xenstore/xenstored_watch.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/xenstore/xenstored_watch.h b/tools/xenstore/xenstored_watch.h index c1ab41d866..d1fac70502 100644 --- a/tools/xenstore/xenstored_watch.h +++ b/tools/xenstore/xenstored_watch.h @@ -32,8 +32,10 @@ bool is_watch_event(struct connection *conn, struct buffered_data *out); /* Look through our watches: if any of them have an event, queue it. */ void queue_next_event(struct connection *conn); -/* Fire all watches: recurse means all the children are effected (ie. rm) */ -void fire_watches(struct transaction *trans, const char *node, bool recurse); +/* Fire all watches: recurse means all the children are effected (ie. rm). + * Returns true if there were any, meaning connection has to wait. + */ +bool fire_watches(struct connection *conn, const char *node, bool recurse); /* Find shortest timeout: if any, reduce tv (may already be set). */ void shortest_watch_ack_timeout(struct timeval *tv); |