#ifndef __pbd__crossthread_h__
#define __pbd__crossthread_h__
+#ifdef check
+#undef check
+#endif
+
#include <glibmm/main.h>
class CrossThreadChannel {
public:
- CrossThreadChannel();
+ CrossThreadChannel(bool);
~CrossThreadChannel();
void wakeup();
int selectable() const { return fds[0]; }
+ int deliver (char msg);
+ int receive (char& msg);
+
void drain ();
static void drain (int fd);