Set thread names
This commit is contained in:
parent
0f6e34a697
commit
bf43c8d2d4
@ -1366,6 +1366,7 @@ void*
|
|||||||
AlsaAudioBackend::_midi_device_thread (void* arg)
|
AlsaAudioBackend::_midi_device_thread (void* arg)
|
||||||
{
|
{
|
||||||
AlsaAudioBackend* self = static_cast<AlsaAudioBackend*> (arg);
|
AlsaAudioBackend* self = static_cast<AlsaAudioBackend*> (arg);
|
||||||
|
pthread_set_name ("ALSA-MIDI-LIST");
|
||||||
self->midi_device_thread ();
|
self->midi_device_thread ();
|
||||||
pthread_exit (0);
|
pthread_exit (0);
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -93,6 +93,7 @@ BaseUI::set_thread_priority () const
|
|||||||
void
|
void
|
||||||
BaseUI::main_thread ()
|
BaseUI::main_thread ()
|
||||||
{
|
{
|
||||||
|
pthread_set_name (string_compose ("UI:%1", event_loop_name ()).c_str ());
|
||||||
DEBUG_TRACE (DEBUG::EventLoop, string_compose ("%1: event loop running in thread %2\n", event_loop_name(), pthread_name()));
|
DEBUG_TRACE (DEBUG::EventLoop, string_compose ("%1: event loop running in thread %2\n", event_loop_name(), pthread_name()));
|
||||||
set_event_loop_for_thread (this);
|
set_event_loop_for_thread (this);
|
||||||
thread_init ();
|
thread_init ();
|
||||||
|
@ -38,6 +38,7 @@
|
|||||||
#include "pbd/failed_constructor.h"
|
#include "pbd/failed_constructor.h"
|
||||||
#include "pbd/file_archive.h"
|
#include "pbd/file_archive.h"
|
||||||
#include "pbd/file_utils.h"
|
#include "pbd/file_utils.h"
|
||||||
|
#include "pbd/pthread_utils.h"
|
||||||
|
|
||||||
using namespace PBD;
|
using namespace PBD;
|
||||||
|
|
||||||
@ -59,6 +60,7 @@ write_callback (void* buffer, size_t size, size_t nmemb, void* d)
|
|||||||
static void*
|
static void*
|
||||||
get_url (void* arg)
|
get_url (void* arg)
|
||||||
{
|
{
|
||||||
|
pthread_set_name ("FileArchiveURL");
|
||||||
FileArchive::Request* r = (FileArchive::Request*) arg;
|
FileArchive::Request* r = (FileArchive::Request*) arg;
|
||||||
CURL* curl;
|
CURL* curl;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user