mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 08:36:32 +01:00
Set thread-names (GUI)
This commit is contained in:
parent
c365c6cdb2
commit
9d737964d6
3 changed files with 8 additions and 1 deletions
|
|
@ -31,6 +31,8 @@
|
||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
#include <glibmm/timer.h>
|
#include <glibmm/timer.h>
|
||||||
|
|
||||||
|
#include "pbd/pthread_utils.h"
|
||||||
|
|
||||||
#include "ardour/linux_vst_support.h"
|
#include "ardour/linux_vst_support.h"
|
||||||
#include "ardour/vst_plugin.h"
|
#include "ardour/vst_plugin.h"
|
||||||
|
|
||||||
|
|
@ -319,6 +321,7 @@ windows, that is if they don't manage their own UIs **/
|
||||||
static void*
|
static void*
|
||||||
gui_event_loop (void* ptr)
|
gui_event_loop (void* ptr)
|
||||||
{
|
{
|
||||||
|
pthread_set_name ("LXVSTEventLoop");
|
||||||
VSTState* vstfx;
|
VSTState* vstfx;
|
||||||
int LXVST_sched_timer_interval = 40; //ms, 25fps
|
int LXVST_sched_timer_interval = 40; //ms, 25fps
|
||||||
XEvent event;
|
XEvent event;
|
||||||
|
|
|
||||||
|
|
@ -83,6 +83,7 @@ _query_registry (const char *regkey, const char *regval, std::string &rv) {
|
||||||
static void*
|
static void*
|
||||||
_pingback (void *arg)
|
_pingback (void *arg)
|
||||||
{
|
{
|
||||||
|
pthread_set_name ("Pingback");
|
||||||
ArdourCurl::HttpGet h;
|
ArdourCurl::HttpGet h;
|
||||||
|
|
||||||
ping_call* cm = static_cast<ping_call*> (arg);
|
ping_call* cm = static_cast<ping_call*> (arg);
|
||||||
|
|
|
||||||
|
|
@ -26,6 +26,8 @@
|
||||||
#include <gtkmm/progressbar.h>
|
#include <gtkmm/progressbar.h>
|
||||||
#include <gtkmm/stock.h>
|
#include <gtkmm/stock.h>
|
||||||
|
|
||||||
|
#include "pbd/pthread_utils.h"
|
||||||
|
|
||||||
#include "ardour/audioregion.h"
|
#include "ardour/audioregion.h"
|
||||||
#include "ardour/dB.h"
|
#include "ardour/dB.h"
|
||||||
#include "ardour/logmeter.h"
|
#include "ardour/logmeter.h"
|
||||||
|
|
@ -246,6 +248,7 @@ void *
|
||||||
StripSilenceDialog::_detection_thread_work (void* arg)
|
StripSilenceDialog::_detection_thread_work (void* arg)
|
||||||
{
|
{
|
||||||
StripSilenceDialog* d = reinterpret_cast<StripSilenceDialog*> (arg);
|
StripSilenceDialog* d = reinterpret_cast<StripSilenceDialog*> (arg);
|
||||||
|
pthread_set_name ("SilenceDetect");
|
||||||
return d->detection_thread_work ();
|
return d->detection_thread_work ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -374,4 +377,4 @@ StripSilenceDialog::finished(int response)
|
||||||
if(response == Gtk::RESPONSE_OK) {
|
if(response == Gtk::RESPONSE_OK) {
|
||||||
_session->add_extra_xml(get_state());
|
_session->add_extra_xml(get_state());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue