[systemd-devel] How to unlock a blocking sd_bus_wait() call
Federico Di Pierro
nierro92 at gmail.com
Thu Jan 7 05:49:24 PST 2016
Hi!
I'm trying to understand if there's a way to properly unlock
a sd_bus_wait() blocking call, as i need the thread where the call is
performed to leave.
The cycle is something like:
while (!quit) {
r = sd_bus_process(signal_bus, NULL);
if (r > 0) {
continue;
}
r = sd_bus_wait(signal_bus, (uint64_t) -1);
if (r < 0) {
break;
}
}
close_bus();
pthread_exit(NULL);
The quit status is changed elsewhere.
Is there a way to achieve this thing?
Thank you very much for your time!
Federico
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20160107/d0f0ccef/attachment.html>
More information about the systemd-devel
mailing list