diff options
author | David Robillard <d@drobilla.net> | 2007-10-05 19:41:24 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-10-05 19:41:24 +0000 |
commit | 9fe19152570b6388fc518bda6ccd422d14cff37a (patch) | |
tree | a29a7632dc3b43f439a558907b150a5a85740746 /src/libs/engine/QueuedEventSource.cpp | |
parent | 9d8f4248b0686b165c6ad0a4f6d653f4bf9cae3b (diff) | |
download | ingen-9fe19152570b6388fc518bda6ccd422d14cff37a.tar.gz ingen-9fe19152570b6388fc518bda6ccd422d14cff37a.tar.bz2 ingen-9fe19152570b6388fc518bda6ccd422d14cff37a.zip |
Fix OSC receiving thread chewing CPU (xrun problem on single core systems).
git-svn-id: http://svn.drobilla.net/lad/ingen@827 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/engine/QueuedEventSource.cpp')
-rw-r--r-- | src/libs/engine/QueuedEventSource.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libs/engine/QueuedEventSource.cpp b/src/libs/engine/QueuedEventSource.cpp index 5dcaf255..4b63b6c4 100644 --- a/src/libs/engine/QueuedEventSource.cpp +++ b/src/libs/engine/QueuedEventSource.cpp @@ -151,7 +151,9 @@ void QueuedEventSource::_whipped() { QueuedEvent* const ev = _events[_prepared_back]; - assert(ev); + //assert(ev); + if (!ev) + return; assert(!ev->is_prepared()); ev->pre_process(); |