[systemd-devel] EXT: sdbus_event loop state mark as volatile?

Cristian Rodríguez crrodriguez at opensuse.org
Mon Sep 9 16:08:03 UTC 2019


> >        while (e->state != SD_EVENT_FINISHED) {
> >                r = sd_event_run(e, (uint64_t) -1);
> >
> > But since e->state is changed by another thread it

Well..then the game is up because sd-bus does not claim to be thread
safe or even aspires to be..  accessing e from different threads will
cause unspecified behaviour.

In any case this patch is not quite what is needed to make it safe.


More information about the systemd-devel mailing list