summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2010-01-24 21:04:31 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2010-01-24 21:04:31 +0000
commitbd04fc4b51cc4fe71a2e6bf9628162bc106e3862 (patch)
treeee6d7bdc782935f2f660cac5cf723c400af9345a /libs
parent059de5beb3cc5057862ca47cc0b275cdf57f968f (diff)
set thread name for OSC event loop/thread
git-svn-id: svn://localhost/ardour2/branches/3.0@6553 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs')
-rw-r--r--libs/surfaces/osc/osc.cc4
1 files changed, 4 insertions, 0 deletions
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<IOSource> 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));