20 #ifndef __pbd__crossthread_h__
21 #define __pbd__crossthread_h__
27 #include <glibmm/main.h>
31 #ifdef PLATFORM_WINDOWS
33 #endif // PLATFORM_WINDOWS
65 int deliver (
char msg);
74 int receive (
char& msg,
bool wait =
false);
85 void set_receive_handler (sigc::slot<bool,Glib::IOCondition> s);
86 void attach (Glib::RefPtr<Glib::MainContext>);
95 bool poll_for_request();
97 #ifndef PLATFORM_WINDOWS
102 SOCKET receive_socket;
103 struct sockaddr_in recv_address;
sigc::slot< bool, Glib::IOCondition > receive_slot
gboolean cross_thread_channel_call_receive_slot(GIOChannel *, GIOCondition condition, void *data)
GIOChannel * receive_channel