Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 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 | -2/+5 |
| | |||||
* | event/DeferredMonitor: new class wrapping g_idle_add() | Max Kellermann | 2013-08-07 | 1 | -12/+18 |
| | |||||
* | *: use gcc.h macros instead of GLib | Max Kellermann | 2013-08-04 | 1 | -1/+2 |
| | |||||
* | GlobalEvents: use g_idle_add() instead of WakeFD() | Max Kellermann | 2013-02-27 | 1 | -28/+5 |
| | | | | | Use the GMainLoop specific function to wake up the main loop. This is simpler and comes with very little overhead. | ||||
* | GlobalEvents: wake up only if the flags were empty | Max Kellermann | 2013-02-27 | 1 | -1/+1 |
| | | | | | Don't bother checking for the parameter mask. This doesn't matter. The only thing that matters is if a wake-up is already pending. | ||||
* | Idle, GlobalEvents: use std::atomic::exchange() | Max Kellermann | 2013-02-27 | 1 | -1/+1 |
| | | | | Less overhead than fetch_and() for what we do. | ||||
* | WakeFD.cxx: use two sockets instead of pipe on Win32 | Denis Krjuchkov | 2013-01-13 | 1 | -1/+1 |
| | | | | | | | | | Pipes aren't really pollable on Windows. GLib emulates polling on pipes using separate reader/writer threads. This adds significant overhead and keeps a strong dependency on GLib. socketpair() function is absent on Windows as well. We implement it here in a loose way. | ||||
* | GlobalEvents: lock-less operation using std::atomic | Max Kellermann | 2013-01-10 | 1 | -31/+8 |
| | | | | Use a bit field instead of a mutex-protected bool array. | ||||
* | GlobalEvents: move code to class WakeFD | Max Kellermann | 2013-01-09 | 1 | -27/+11 |
| | |||||
* | EventPipe: rename to GlobalEvents | Max Kellermann | 2013-01-09 | 1 | -0/+153 |