summaryrefslogtreecommitdiff
path: root/gtk2_ardour
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2011-02-03 20:51:42 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2011-02-03 20:51:42 +0000
commitce0465bf2efb3d16476d998f74600a2c65d715a4 (patch)
tree547ff818e4b5c663b02f392597df7867dfb376ee /gtk2_ardour
parente184117e446acde5c71faf4cd2974411772e8074 (diff)
don't bother trying to release any resources when we think an LV2 UI thread has exited
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@8694 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour')
-rw-r--r--gtk2_ardour/lv2_plugin_ui.cc15
1 files changed, 3 insertions, 12 deletions
diff --git a/gtk2_ardour/lv2_plugin_ui.cc b/gtk2_ardour/lv2_plugin_ui.cc
index 028f4bec2a..7a49fc22b0 100644
--- a/gtk2_ardour/lv2_plugin_ui.cc
+++ b/gtk2_ardour/lv2_plugin_ui.cc
@@ -42,18 +42,9 @@ LV2PluginUI::lv2_ui_write(LV2UI_Controller controller,
{
LV2PluginUI* me = (LV2PluginUI*)controller;
- cout << "lv2_ui_write, caller = " << pthread_self() << " current registered UI thread " << me->_current_ui_thread << endl;
-
if (!Gtkmm2ext::UI::instance()->caller_is_ui_thread()) {
- if (pthread_self() != me->_current_ui_thread) {
- if (me->_current_ui_thread != (pthread_t) 0) {
- cerr << "Unregistering LV2 external thread " << me->_current_ui_thread << endl;
- PBD::ThreadLeaving (me->_current_ui_thread);
- }
- cerr << "Registering new LV2 UI external thread " << pthread_self() << endl;
- PBD::notify_gui_about_thread_creation (pthread_self(), me->_lv2->name());
- me->_current_ui_thread = pthread_self();
- }
+ cerr << "Registering new LV2 UI external thread " << pthread_self() << endl;
+ PBD::notify_gui_about_thread_creation (pthread_self(), me->_lv2->name());
}
if (*(float*)buffer != me->_values[port_index]) {
@@ -141,7 +132,7 @@ LV2PluginUI::output_update()
LV2PluginUI::LV2PluginUI (boost::shared_ptr<PluginInsert> pi, boost::shared_ptr<LV2Plugin> lv2p)
: PlugUIBase (pi)
, _lv2(lv2p)
- , _current_ui_thread ((pthread_t) 0)
+ , _current_ui_thread (0)
, _inst(NULL)
, _values(NULL)
, _external_ui_ptr(NULL)