From 3a1eb6f291e555a25d2be69a540d0f8d4317c4f2 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 21 Dec 2012 21:37:59 +0000 Subject: Fix crash when deleting subgraphs. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4881 a436a847-0d15-0410-975c-d299462d15a1 --- src/server/GraphImpl.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/server') diff --git a/src/server/GraphImpl.cpp b/src/server/GraphImpl.cpp index d5cf646c..2353b977 100644 --- a/src/server/GraphImpl.cpp +++ b/src/server/GraphImpl.cpp @@ -275,13 +275,11 @@ GraphImpl::create_port(BufferFactory& bufs, * Port is not removed from ports array for process thread (which could be * simultaneously running). * - * Realtime safe. Preprocessing thread only. + * Pre-processing thread or situations that won't cause races with it only. */ void GraphImpl::remove_port(DuplexPort& port) { - ThreadManager::assert_thread(THREAD_PRE_PROCESS); - if (port.is_input()) { _inputs.erase(_inputs.iterator_to(port)); } else { @@ -294,13 +292,11 @@ GraphImpl::remove_port(DuplexPort& port) * Ports are not removed from ports array for process thread (which could be * simultaneously running). Returned is a (inputs, outputs) pair. * - * Realtime safe. Preprocessing thread only. + * Pre-processing thread or situations that won't cause races with it only. */ void GraphImpl::clear_ports() { - ThreadManager::assert_thread(THREAD_PRE_PROCESS); - _inputs.clear(); _outputs.clear(); } -- cgit v1.2.1