13
0

set thread name for OSC event loop/thread

git-svn-id: svn://localhost/ardour2/branches/3.0@6553 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2010-01-24 21:04:31 +00:00
parent 059de5beb3
commit bd04fc4b51

View File

@ -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));