summaryrefslogtreecommitdiffstats
path: root/src/libs/engine/GraphObject.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2007-01-06 19:39:56 +0000
committerDavid Robillard <d@drobilla.net>2007-01-06 19:39:56 +0000
commit69c5e7fe16b7d9d08db81a6d5e2762f0be3b081f (patch)
tree68fd1ea83beedaaaa97846ed09240a3585b2d931 /src/libs/engine/GraphObject.cpp
parent2122a857662203936a04a39df7d0e1ad1db82853 (diff)
downloadingen-69c5e7fe16b7d9d08db81a6d5e2762f0be3b081f.tar.gz
ingen-69c5e7fe16b7d9d08db81a6d5e2762f0be3b081f.tar.bz2
ingen-69c5e7fe16b7d9d08db81a6d5e2762f0be3b081f.zip
Added ability to get Raul Thread for current calling context.
Strong threading assertions. Flowcanvas port removal fixes. Patch port destruction. Code cleanups, bug fixes. git-svn-id: http://svn.drobilla.net/lad/ingen@234 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/engine/GraphObject.cpp')
-rw-r--r--src/libs/engine/GraphObject.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libs/engine/GraphObject.cpp b/src/libs/engine/GraphObject.cpp
index 03b4eae7..7173e6f8 100644
--- a/src/libs/engine/GraphObject.cpp
+++ b/src/libs/engine/GraphObject.cpp
@@ -33,6 +33,7 @@ GraphObject::parent_patch() const
void
GraphObject::add_to_store(ObjectStore* store)
{
+ assert(!_store);
store->add(this);
_store = store;
}
@@ -41,6 +42,8 @@ GraphObject::add_to_store(ObjectStore* store)
void
GraphObject::remove_from_store()
{
+ assert(_store);
+
if (_store) {
TreeNode<GraphObject*>* node = _store->remove(path());
if (node != NULL) {