diff options
Diffstat (limited to 'src/progs/ingenuity')
-rw-r--r-- | src/progs/ingenuity/App.cpp | 1 | ||||
-rw-r--r-- | src/progs/ingenuity/LoadPatchWindow.cpp | 1 | ||||
-rw-r--r-- | src/progs/ingenuity/ThreadedLoader.cpp | 7 | ||||
-rw-r--r-- | src/progs/ingenuity/ThreadedLoader.h | 16 |
4 files changed, 13 insertions, 12 deletions
diff --git a/src/progs/ingenuity/App.cpp b/src/progs/ingenuity/App.cpp index 8ffcd710..0e726db9 100644 --- a/src/progs/ingenuity/App.cpp +++ b/src/progs/ingenuity/App.cpp @@ -40,6 +40,7 @@ #include "Store.h" #include "ThreadedLoader.h" #include "WindowFactory.h" +#include "ModelEngineInterface.h" #ifdef HAVE_LASH #include "LashController.h" #endif diff --git a/src/progs/ingenuity/LoadPatchWindow.cpp b/src/progs/ingenuity/LoadPatchWindow.cpp index aba427e9..cc7ff7bd 100644 --- a/src/progs/ingenuity/LoadPatchWindow.cpp +++ b/src/progs/ingenuity/LoadPatchWindow.cpp @@ -25,6 +25,7 @@ #include "ModelEngineInterface.h" #include "ThreadedLoader.h" +using namespace Ingen::Serialisation; using boost::optional; namespace Ingenuity { diff --git a/src/progs/ingenuity/ThreadedLoader.cpp b/src/progs/ingenuity/ThreadedLoader.cpp index 118d252f..bf195dce 100644 --- a/src/progs/ingenuity/ThreadedLoader.cpp +++ b/src/progs/ingenuity/ThreadedLoader.cpp @@ -27,8 +27,8 @@ namespace Ingenuity { ThreadedLoader::ThreadedLoader(SharedPtr<ModelEngineInterface> engine) - : _deprecated_loader(engine) - , _loader(engine, App::instance().rdf_world()) + : _engine(engine) + , _deprecated_loader(engine) , _serializer(*App::instance().rdf_world()) { // FIXME: rework this so the thread is only present when it's doing something (save mem) @@ -78,7 +78,8 @@ ThreadedLoader::load_patch(bool merge, false))); } else { _events.push_back(sigc::hide_return(sigc::bind( - sigc::mem_fun(_loader, &Loader::load), + sigc::ptr_fun(&Ingen::Serialisation::load), + App::instance().engine(), App::instance().rdf_world(), data_base_uri, engine_parent, diff --git a/src/progs/ingenuity/ThreadedLoader.h b/src/progs/ingenuity/ThreadedLoader.h index 4cab4acb..bf2c2ed5 100644 --- a/src/progs/ingenuity/ThreadedLoader.h +++ b/src/progs/ingenuity/ThreadedLoader.h @@ -22,15 +22,15 @@ #include <list> #include <cassert> #include <boost/optional/optional.hpp> -#include "raul/Thread.h" -#include "raul/Slave.h" -#include "raul/Mutex.h" -#include "raul/Condition.h" +#include <raul/Thread.h> +#include <raul/Slave.h> +#include <raul/Mutex.h> +#include <raul/Condition.h> #include "ModelEngineInterface.h" -#include "ObjectModel.h" #include "Serializer.h" #include "DeprecatedLoader.h" #include "Loader.h" +#include "PatchModel.h" using std::string; using std::list; using boost::optional; @@ -57,9 +57,6 @@ public: ThreadedLoader(SharedPtr<ModelEngineInterface> engine); ~ThreadedLoader(); - //Loader& loader() const { return *_loader; } - //Serializer& serializer() const { return *_serializer; } - // FIXME: there's a pattern here.... // (same core interface as Loader/Serializer) @@ -82,8 +79,9 @@ private: void _whipped(); + SharedPtr<ModelEngineInterface> _engine; + DeprecatedLoader _deprecated_loader; - Loader _loader; Serializer _serializer; Raul::Mutex _mutex; list<Closure> _events; |