summaryrefslogtreecommitdiffstats
path: root/src/server
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-12-21 21:37:59 +0000
committerDavid Robillard <d@drobilla.net>2012-12-21 21:37:59 +0000
commit3a1eb6f291e555a25d2be69a540d0f8d4317c4f2 (patch)
tree1029a16b5e438d59a3378a30b46e96429a94de01 /src/server
parentd22f6503008f738b5cf7dcb58212e1be503a54f4 (diff)
downloadingen-3a1eb6f291e555a25d2be69a540d0f8d4317c4f2.tar.gz
ingen-3a1eb6f291e555a25d2be69a540d0f8d4317c4f2.tar.bz2
ingen-3a1eb6f291e555a25d2be69a540d0f8d4317c4f2.zip
Fix crash when deleting subgraphs.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4881 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/server')
-rw-r--r--src/server/GraphImpl.cpp8
1 files changed, 2 insertions, 6 deletions
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();
}