diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2006-02-15 15:55:48 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2006-02-15 15:55:48 +0000 |
commit | ae14f6c7eb9564d8b644a7c6a376f1c202870cd1 (patch) | |
tree | 524134ecad48d1abb08359e228425b5ded7701f9 /libs/gtkmm2ext/gtk_ui.cc | |
parent | 69c9f3d7ce4643c75e1490661d51247b699b606a (diff) |
new stacktrace function in libpbd3; variable size GUI request thread queues
git-svn-id: svn://localhost/trunk/ardour2@330 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/gtkmm2ext/gtk_ui.cc')
-rw-r--r-- | libs/gtkmm2ext/gtk_ui.cc | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/libs/gtkmm2ext/gtk_ui.cc b/libs/gtkmm2ext/gtk_ui.cc index 1a46e1b900..8dd5a18526 100644 --- a/libs/gtkmm2ext/gtk_ui.cc +++ b/libs/gtkmm2ext/gtk_ui.cc @@ -31,6 +31,7 @@ #include <pbd/touchable.h> #include <pbd/failed_constructor.h> #include <pbd/pthread_utils.h> +#include <pbd/stacktrace.h> #include <gtkmm2ext/gtk_ui.h> #include <gtkmm2ext/textviewer.h> @@ -59,6 +60,7 @@ UI::UI (string name, int *argc, char ***argv, string rcfile) } PBD::ThreadCreated.connect (mem_fun (*this, &UI::register_thread)); + PBD::ThreadCreatedWithRequestSize.connect (mem_fun (*this, &UI::register_thread_with_request_count)); _ok = false; _active = false; @@ -370,7 +372,13 @@ UI::timeout_add (unsigned int timeout, int (*func)(void *), void *arg) void UI::register_thread (pthread_t thread_id, string name) { - RingBufferNPT<Request>* b = new RingBufferNPT<Request> (128); + register_thread_with_request_count (thread_id, name, 256); +} + +void +UI::register_thread_with_request_count (pthread_t thread_id, string name, uint32_t num_requests) +{ + RingBufferNPT<Request>* b = new RingBufferNPT<Request> (num_requests); { PBD::LockMonitor lm (request_buffer_map_lock, __LINE__, __FILE__); |