summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2013-02-03 21:06:31 +0000
committerDavid Robillard <d@drobilla.net>2013-02-03 21:06:31 +0000
commit32044a3733aab0f913c86738ebabbe63aed7f1d6 (patch)
tree12c02ed3ca693d7af940737e6e7a4e1a2e1141cd
parent1002a5535843b303d2445bf4164d9275ab3b2389 (diff)
downloadingen-32044a3733aab0f913c86738ebabbe63aed7f1d6.tar.gz
ingen-32044a3733aab0f913c86738ebabbe63aed7f1d6.tar.bz2
ingen-32044a3733aab0f913c86738ebabbe63aed7f1d6.zip
Fix potential deadlock on exit.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5044 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r--src/server/PreProcessor.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/server/PreProcessor.cpp b/src/server/PreProcessor.cpp
index dec6c2df..d62fdab3 100644
--- a/src/server/PreProcessor.cpp
+++ b/src/server/PreProcessor.cpp
@@ -36,7 +36,10 @@ PreProcessor::PreProcessor()
}
PreProcessor::~PreProcessor()
-{}
+{
+ _exit_flag = true;
+ _sem.post();
+}
void
PreProcessor::event(Event* const ev)