Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | DeferredMonitor: fix race condition when using GLib event loop | Max Kellermann | 2014-04-26 | 1 | -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 epoll | Max Kellermann | 2013-08-10 | 1 | -0/+26 |
| | | | | Implement an event loop without GLib. | ||||
* | event/DeferredMonitor: rename Run() to RunDeferred() | Max Kellermann | 2013-08-07 | 1 | -2/+2 |
| | |||||
* | event/DeferredMonitor: use EventLoop::AddIdle() | Max Kellermann | 2013-08-07 | 1 | -1/+1 |
| | |||||
* | event/DeferredMonitor: new class wrapping g_idle_add() | Max Kellermann | 2013-08-07 | 1 | -0/+55 |