From bd04fc4b51cc4fe71a2e6bf9628162bc106e3862 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Sun, 24 Jan 2010 21:04:31 +0000 Subject: [PATCH] set thread name for OSC event loop/thread git-svn-id: svn://localhost/ardour2/branches/3.0@6553 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/surfaces/osc/osc.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libs/surfaces/osc/osc.cc b/libs/surfaces/osc/osc.cc index 0f67f0e602..b7886f7513 100644 --- a/libs/surfaces/osc/osc.cc +++ b/libs/surfaces/osc/osc.cc @@ -216,6 +216,10 @@ OSC::start () void OSC::thread_init () { + char* c = new char[4]; + strcpy (c, X_("OSC")); + pthread_set_name (c); + if (_osc_unix_server) { Glib::RefPtr src = IOSource::create (lo_server_get_socket_fd (_osc_unix_server), IO_IN|IO_HUP|IO_ERR); src->connect (sigc::bind (sigc::mem_fun (*this, &OSC::osc_input_handler), _osc_unix_server));