diff options
author | David Robillard <d@drobilla.net> | 2012-05-12 05:09:25 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-05-12 05:09:25 +0000 |
commit | 54b737addaff8fbcbec927c31b6a1f00a80a5cda (patch) | |
tree | 11bf79ae4c34dcfebc9870f4cb78d30afd2d726c | |
parent | e6ef6533ecd35aa7623fb8e286ef7e6bb4515fb4 (diff) | |
download | ingen-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.cpp | 2 |
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); |