From 4a10eaeee609b84972ef2b2d0a0fab8a3664891a Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 14 Sep 2005 00:03:14 +0000 Subject: [PATCH] add some mo0re wakeups git-svn-id: file:///home/lennart/svn/public/avahi/trunk@579 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe --- avahi-common/simple-watch.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/avahi-common/simple-watch.c b/avahi-common/simple-watch.c index 2b1e6c5..6872389 100644 --- a/avahi-common/simple-watch.c +++ b/avahi-common/simple-watch.c @@ -530,10 +530,11 @@ int avahi_simple_poll_iterate(AvahiSimplePoll *s, int timeout) { return 0; } -void avahi_simple_poll_quit(AvahiSimplePoll *w) { - assert(w); +void avahi_simple_poll_quit(AvahiSimplePoll *s) { + assert(s); - w->quit = 1; + s->quit = 1; + wakeup(s); } const AvahiPoll* avahi_simple_poll_get(AvahiSimplePoll *s) { @@ -546,4 +547,5 @@ void avahi_simple_poll_set_func(AvahiSimplePoll *s, AvahiPollFunc func) { assert(s); s->poll_func = func ? func : (AvahiPollFunc) poll; + wakeup(s); } -- 2.39.5