summaryrefslogtreecommitdiffstats
path: root/src/libs/shared
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2008-08-16 04:29:57 +0000
committerDavid Robillard <d@drobilla.net>2008-08-16 04:29:57 +0000
commitbf6f4d0a409ba76e65d375ef75533d6a6062a228 (patch)
tree9343fe271e8eeb731b80d954ae85d695e25dd667 /src/libs/shared
parenta8b36b5637acb3fa8eb29ef0f45bd11653f412fa (diff)
downloadingen-bf6f4d0a409ba76e65d375ef75533d6a6062a228.tar.gz
ingen-bf6f4d0a409ba76e65d375ef75533d6a6062a228.tar.bz2
ingen-bf6f4d0a409ba76e65d375ef75533d6a6062a228.zip
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
Diffstat (limited to 'src/libs/shared')
-rw-r--r--src/libs/shared/Makefile.am7
-rw-r--r--src/libs/shared/Store.hpp6
2 files changed, 12 insertions, 1 deletions
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 <string>
+#include <glibmm/thread.h>
#include <raul/PathTable.hpp>
#include "interface/GraphObject.hpp"
@@ -39,6 +40,11 @@ public:
SharedPtr<Shared::GraphObject> find_child(SharedPtr<Shared::GraphObject> parent,
const std::string& child_name) const;
+
+ Glib::RWLock& lock() { return _lock; }
+
+private:
+ Glib::RWLock _lock;
};