diff options
author | David Robillard <d@drobilla.net> | 2007-09-20 16:21:35 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-09-20 16:21:35 +0000 |
commit | 8eb2505498ba0e51f0d861a92a365e1766d43b76 (patch) | |
tree | 86e86e6ccadeaf1a257b6bf368b30c5165563f4a /raul/RDFNode.hpp | |
parent | 23df76c6037cc0719c6b590dd49941815367e3c8 (diff) | |
download | raul-8eb2505498ba0e51f0d861a92a365e1766d43b76.tar.gz raul-8eb2505498ba0e51f0d861a92a365e1766d43b76.tar.bz2 raul-8eb2505498ba0e51f0d861a92a365e1766d43b76.zip |
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
Diffstat (limited to 'raul/RDFNode.hpp')
-rw-r--r-- | raul/RDFNode.hpp | 7 |
1 files changed, 5 insertions, 2 deletions
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; }; |