From fa2fd348491cddef0a356fb13a8dab0d2e91d5fb Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 21 Jan 2018 00:41:34 +0100 Subject: Replace glib quarks --- ingen/URIMap.hpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'ingen/URIMap.hpp') diff --git a/ingen/URIMap.hpp b/ingen/URIMap.hpp index 6ad8c684..fc402c2c 100644 --- a/ingen/URIMap.hpp +++ b/ingen/URIMap.hpp @@ -18,8 +18,11 @@ #define INGEN_URIMAP_HPP #include +#include #include +#include #include +#include #include "ingen/LV2Features.hpp" #include "ingen/ingen.h" @@ -65,7 +68,7 @@ public: struct URIDMapFeature : public Feature { URIDMapFeature(URIMap* map, LV2_URID_Map* impl, Log& log); LV2_URID map(const char* uri); - static LV2_URID default_map(LV2_URID_Map_Handle h, const char* uri); + static LV2_URID default_map(LV2_URID_Map_Handle h, const char* c_uri); LV2_URID_Map urid_map; Log& log; }; @@ -81,8 +84,15 @@ public: SPtr urid_unmap_feature() { return _urid_unmap_feature; } private: + friend class URIDMapFeature; + friend class URIDUnMapFeature; + SPtr _urid_map_feature; SPtr _urid_unmap_feature; + + std::mutex _mutex; + std::unordered_map _map; + std::vector _unmap; }; } // namespace Ingen -- cgit v1.2.1