From a4625db3f26716fb7a34614c76582ab92b5212e8 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 20 Sep 2007 16:23:03 +0000 Subject: Fix RDF threading problems (random messy crashes on patch loading). git-svn-id: http://svn.drobilla.net/lad/ingen@740 a436a847-0d15-0410-975c-d299462d15a1 --- src/libs/client/PluginModel.hpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/libs/client/PluginModel.hpp') diff --git a/src/libs/client/PluginModel.hpp b/src/libs/client/PluginModel.hpp index a8d420b8..ba5598c0 100644 --- a/src/libs/client/PluginModel.hpp +++ b/src/libs/client/PluginModel.hpp @@ -23,6 +23,7 @@ #include #include #include +#include #ifdef HAVE_SLV2 #include #endif @@ -109,6 +110,12 @@ public: void* gui(); #endif + static void set_rdf_world(Raul::RDF::World& world) { + _rdf_world = &world; + } + + static Raul::RDF::World* rdf_world() { return _rdf_world; } + private: Type _type; string _uri; @@ -120,6 +127,8 @@ private: SLV2Plugin _slv2_plugin; #endif + + static Raul::RDF::World* _rdf_world; }; -- cgit v1.2.1