aboutsummaryrefslogtreecommitdiff
path: root/src/GlobalEvents.cxx
Commit message (Collapse)AuthorAge
* GlobalEvents: use g_idle_add() instead of WakeFD()Max Kellermann2013-02-27
| | | | | 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 emptyMax Kellermann2013-02-27
| | | | | 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 Kellermann2013-02-27
| | | | Less overhead than fetch_and() for what we do.
* WakeFD.cxx: use two sockets instead of pipe on Win32Denis Krjuchkov2013-01-13
| | | | | | | | | 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::atomicMax Kellermann2013-01-10
| | | | Use a bit field instead of a mutex-protected bool array.
* GlobalEvents: move code to class WakeFDMax Kellermann2013-01-09
|
* EventPipe: rename to GlobalEventsMax Kellermann2013-01-09