diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2009-12-04 19:24:09 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2009-12-04 19:24:09 +0000 |
commit | 4a3d7877f6b03fac7755f997b945583ba5732d13 (patch) | |
tree | 1099df5854224acbb17a650215d7f07710b8babe /gtk2_ardour/sfdb_ui.cc | |
parent | 478fd92039443743babec98812f10921209f1e5a (diff) |
cross-thread handling of SessionEvent allocation/deallocation, with widespread consequences
git-svn-id: svn://localhost/ardour2/branches/3.0@6283 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/sfdb_ui.cc')
-rw-r--r-- | gtk2_ardour/sfdb_ui.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gtk2_ardour/sfdb_ui.cc b/gtk2_ardour/sfdb_ui.cc index 3328b71225..aa8d7b77f2 100644 --- a/gtk2_ardour/sfdb_ui.cc +++ b/gtk2_ardour/sfdb_ui.cc @@ -734,6 +734,7 @@ void* freesound_search_thread_entry (void* arg) { PBD::notify_gui_about_thread_creation (pthread_self(), X_("Freesound Search")); + SessionEvent::create_per_thread_pool ("freesound events", 64); static_cast<SoundFileBrowser*>(arg)->freesound_search_thread (); @@ -763,6 +764,10 @@ SoundFileBrowser::freesound_search_clicked () void SoundFileBrowser::freesound_search_thread() { +#if 0 + + THIS IS ALL TOTALLY THREAD-ILLEGAL ... YOU CANNOT DO GTK STUFF IN THIS THREAD + #ifdef FREESOUND freesound_list->clear(); @@ -810,6 +815,8 @@ SoundFileBrowser::freesound_search_thread() canceling = false; freesound_search_btn.set_label(_("Start Downloading")); #endif +#endif + } vector<ustring> |