• Max Kellermann's avatar
    DeferredMonitor: fix race condition when using GLib event loop · 0efb67b5
    Max Kellermann authored
    Turns out the lock-free code using atomics was not thread-safe.  The
    given callback could be invoked by GLib before the source_id attribute
    was assigned.  This commit changes the DeferredMonitor class to use a
    Mutex to block the event loop until source_id is assigned.  This bug
    does not exist in the 0.19 branch because it does not use the GLib
    main loop anymore.
    0efb67b5
Name
Last commit
Last update
doc Loading commit data...
m4 Loading commit data...
scripts Loading commit data...
src Loading commit data...
test Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
COPYING Loading commit data...
INSTALL Loading commit data...
Makefile.am Loading commit data...
NEWS Loading commit data...
README Loading commit data...
UPGRADING Loading commit data...
autogen.sh Loading commit data...
configure.ac Loading commit data...
mpd.service.in Loading commit data...
valgrind.suppressions Loading commit data...