From 8eb2505498ba0e51f0d861a92a365e1766d43b76 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 20 Sep 2007 16:21:35 +0000 Subject: Add locking support to RDF stuff for dealing with concurrent librdf use. git-svn-id: http://svn.drobilla.net/lad/raul@739 a436a847-0d15-0410-975c-d299462d15a1 --- raul/RDFNode.hpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'raul/RDFNode.hpp') diff --git a/raul/RDFNode.hpp b/raul/RDFNode.hpp index c0ed669..63b7a2e 100644 --- a/raul/RDFNode.hpp +++ b/raul/RDFNode.hpp @@ -38,15 +38,17 @@ public: BLANK = LIBRDF_NODE_TYPE_BLANK }; - Node() : _node(NULL) {} + Node() : _world(NULL), _node(NULL) {} Node(World& world, Type t, const std::string& s); Node(World& world); - Node(librdf_node* node); + Node(World& world, librdf_node* node); Node(const Node& other); ~Node(); Type type() const { return ((_node) ? (Type)librdf_node_get_type(_node) : UNKNOWN); } + + World* world() const { return _world; } librdf_node* get_node() const { return _node; } @@ -72,6 +74,7 @@ public: float to_bool() const; private: + World* _world; librdf_node* _node; }; -- cgit v1.2.1