summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-05-12 05:09:25 +0000
committerDavid Robillard <d@drobilla.net>2012-05-12 05:09:25 +0000
commit54b737addaff8fbcbec927c31b6a1f00a80a5cda (patch)
tree11bf79ae4c34dcfebc9870f4cb78d30afd2d726c
parente6ef6533ecd35aa7623fb8e286ef7e6bb4515fb4 (diff)
downloadingen-54b737addaff8fbcbec927c31b6a1f00a80a5cda.tar.gz
ingen-54b737addaff8fbcbec927c31b6a1f00a80a5cda.tar.bz2
ingen-54b737addaff8fbcbec927c31b6a1f00a80a5cda.zip
Add thread assertion.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4371 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r--src/server/PreProcessor.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/server/PreProcessor.cpp b/src/server/PreProcessor.cpp
index a88b74e5..4f51ad00 100644
--- a/src/server/PreProcessor.cpp
+++ b/src/server/PreProcessor.cpp
@@ -40,6 +40,8 @@ PreProcessor::~PreProcessor()
void
PreProcessor::event(Event* const ev)
{
+ ThreadManager::assert_not_thread(THREAD_PROCESS);
+
// TODO: Probably possible to make this lock-free with CAS
Glib::Mutex::Lock lock(_mutex);