summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-04-27 01:22:22 +0000
committerDavid Robillard <d@drobilla.net>2012-04-27 01:22:22 +0000
commitbabe9d6cf70d43bf63ea684ff65142ae66581db9 (patch)
treeb8728b57ba423a2d84b2d71f64e09def770f2ec7
parent623aca05bf5c5d4491a26969c29e16d8ce38b790 (diff)
downloadingen-babe9d6cf70d43bf63ea684ff65142ae66581db9.tar.gz
ingen-babe9d6cf70d43bf63ea684ff65142ae66581db9.tar.bz2
ingen-babe9d6cf70d43bf63ea684ff65142ae66581db9.zip
Initialise thread system if necessary to work in non-Gtk hosts.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4283 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r--src/server/ingen_lv2.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/server/ingen_lv2.cpp b/src/server/ingen_lv2.cpp
index a8466dda..d68b749b 100644
--- a/src/server/ingen_lv2.cpp
+++ b/src/server/ingen_lv2.cpp
@@ -369,6 +369,10 @@ ingen_instantiate(const LV2_Descriptor* descriptor,
const char* bundle_path,
const LV2_Feature*const* features)
{
+ if (!Glib::thread_supported()) {
+ Glib::thread_init();
+ }
+
Shared::set_bundle_path(bundle_path);
Lib::Patches patches = find_patches(
Glib::filename_to_uri(