diff options
Diffstat (limited to 'src/libs/shared')
-rw-r--r-- | src/libs/shared/Makefile.am | 7 | ||||
-rw-r--r-- | src/libs/shared/Store.hpp | 6 |
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; }; |