On Wed, 08.06.16 08:49, Ben-melech, Shiran ([email protected]) wrote:

> Thank you for the help, I've found that my mistake was initializing the
> sd_event from the main thread while running the loop from the pthread.
> now everything seems to be in order.
> 
> Is there a way to cancel the event loop from the main thread without
> killing the pthread?

Consider creating an eventfd() and adding it to the event loop while
attaching a function that just quits the loop. Then, simply write
something to the eventfd and the event loop will exit.

Lennart

-- 
Lennart Poettering, Red Hat
_______________________________________________
systemd-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to