aboutsummaryrefslogtreecommitdiffstats
path: root/src/event/DeferredMonitor.cxx (follow)
Commit message (Collapse)AuthorAgeFilesLines
* DeferredMonitor: fix race condition when using GLib event loopMax Kellermann2014-04-261-10/+18
| | | | | | | | | 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.
* EventLoop: new implementation using epollMax Kellermann2013-08-101-0/+26
| | | | Implement an event loop without GLib.
* event/DeferredMonitor: rename Run() to RunDeferred()Max Kellermann2013-08-071-2/+2
|
* event/DeferredMonitor: use EventLoop::AddIdle()Max Kellermann2013-08-071-1/+1
|
* event/DeferredMonitor: new class wrapping g_idle_add()Max Kellermann2013-08-071-0/+55