mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-19 11:55:58 +01:00
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
This commit is contained in:
parent
e184117e44
commit
ce0465bf2e
1 changed files with 3 additions and 12 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue