#include <cstring>
#include "pbd/base_ui.h"
+#include "pbd/debug.h"
+#include "pbd/pthread_utils.h"
#include "pbd/error.h"
#include "pbd/compose.h"
#include "pbd/failed_constructor.h"
BaseUI::RequestType BaseUI::Quit = BaseUI::new_request_type();
BaseUI::BaseUI (const string& str)
- : run_loop_thread (0)
+ : request_channel (true)
+ , run_loop_thread (0)
, _name (str)
{
base_ui_instance = this;
void
BaseUI::main_thread ()
{
- set_ui_for_thread (this);
+ DEBUG_TRACE (DEBUG::EventLoop, string_compose ("%1: event loop running in thread %2\n", name(), pthread_self()));
+ set_event_loop_for_thread (this);
thread_init ();
_main_loop->run ();
}
bool
BaseUI::request_handler (Glib::IOCondition ioc)
{
- /* check the transport request pipe */
+ /* check the request pipe */
if (ioc & ~IO_IN) {
_main_loop->quit ();