From bf6f4d0a409ba76e65d375ef75533d6a6062a228 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 16 Aug 2008 04:29:57 +0000 Subject: Only load one serialisation module, and store it in the world. git-svn-id: http://svn.drobilla.net/lad/ingen@1398 a436a847-0d15-0410-975c-d299462d15a1 --- src/libs/shared/Makefile.am | 7 ++++++- src/libs/shared/Store.hpp | 6 ++++++ 2 files changed, 12 insertions(+), 1 deletion(-) (limited to 'src/libs/shared') diff --git a/src/libs/shared/Makefile.am b/src/libs/shared/Makefile.am index 6a073148..b7868bd1 100644 --- a/src/libs/shared/Makefile.am +++ b/src/libs/shared/Makefile.am @@ -1,6 +1,11 @@ noinst_LTLIBRARIES = libingen_shared.la -libingen_shared_la_CXXFLAGS = @INGEN_CFLAGS@ @REDLANDMM_CFLAGS@ @SLV2_CFLAGS@ @RAUL_CFLAGS@ +libingen_shared_la_CXXFLAGS = \ + @GLIBMM_CFLAGS@ \ + @INGEN_CFLAGS@ \ + @RAUL_CFLAGS@ \ + @REDLANDMM_CFLAGS@ \ + @SLV2_CFLAGS@ libingen_shared_la_SOURCES = \ LV2Features.cpp \ diff --git a/src/libs/shared/Store.hpp b/src/libs/shared/Store.hpp index ec29e7c0..f0a89024 100644 --- a/src/libs/shared/Store.hpp +++ b/src/libs/shared/Store.hpp @@ -19,6 +19,7 @@ #define COMMON_STORE_H #include +#include #include #include "interface/GraphObject.hpp" @@ -39,6 +40,11 @@ public: SharedPtr find_child(SharedPtr parent, const std::string& child_name) const; + + Glib::RWLock& lock() { return _lock; } + +private: + Glib::RWLock _lock; }; -- cgit v1.2.1