aboutsummaryrefslogtreecommitdiff
path: root/src/GlobalEvents.cxx
diff options
context:
space:
mode:
authorDenis Krjuchkov <denis@crazydev.net>2013-01-13 15:30:53 +0600
committerDenis Krjuchkov <denis@crazydev.net>2013-01-13 15:30:53 +0600
commit90ab65f8c732e83bd99a1621e38a4e690c71e95d (patch)
tree277fbb184b0d366a987927bda65e819b11923813 /src/GlobalEvents.cxx
parentabb0fcb2035fa96b1ec09f9480838c476527ccd4 (diff)
WakeFD.cxx: use two sockets instead of pipe on Win32
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.
Diffstat (limited to 'src/GlobalEvents.cxx')
-rw-r--r--src/GlobalEvents.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/GlobalEvents.cxx b/src/GlobalEvents.cxx
index 664803ca..e4f335c9 100644
--- a/src/GlobalEvents.cxx
+++ b/src/GlobalEvents.cxx
@@ -78,7 +78,7 @@ GlobalEvents::Initialize()
#ifndef G_OS_WIN32
GIOChannel *channel = g_io_channel_unix_new(wake_fd.Get());
#else
- GIOChannel *channel = g_io_channel_win32_new_fd(wake_fd.Get());
+ GIOChannel *channel = g_io_channel_win32_new_socket(wake_fd.Get());
#endif
source_id = g_io_add_watch(channel, G_IO_IN,