diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2010-01-24 21:04:31 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2010-01-24 21:04:31 +0000 |
commit | bd04fc4b51cc4fe71a2e6bf9628162bc106e3862 (patch) | |
tree | ee6d7bdc782935f2f660cac5cf723c400af9345a /libs | |
parent | 059de5beb3cc5057862ca47cc0b275cdf57f968f (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.cc | 4 |
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)); |