mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 23:35:03 +01:00
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:
parent
059de5beb3
commit
bd04fc4b51
1 changed files with 4 additions and 0 deletions
|
|
@ -216,6 +216,10 @@ OSC::start ()
|
||||||
void
|
void
|
||||||
OSC::thread_init ()
|
OSC::thread_init ()
|
||||||
{
|
{
|
||||||
|
char* c = new char[4];
|
||||||
|
strcpy (c, X_("OSC"));
|
||||||
|
pthread_set_name (c);
|
||||||
|
|
||||||
if (_osc_unix_server) {
|
if (_osc_unix_server) {
|
||||||
Glib::RefPtr<IOSource> src = IOSource::create (lo_server_get_socket_fd (_osc_unix_server), IO_IN|IO_HUP|IO_ERR);
|
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));
|
src->connect (sigc::bind (sigc::mem_fun (*this, &OSC::osc_input_handler), _osc_unix_server));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue