diff options
author | David Robillard <d@drobilla.net> | 2007-01-22 04:07:53 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-01-22 04:07:53 +0000 |
commit | 216eef86b39515911234d0f1d3bb23334e8d29f2 (patch) | |
tree | e20b7374d808ec9fe031f4316d1ca3b24906bf63 /src/Patchage.cpp | |
parent | 014ba4fb2d72bdc481c2ba76bd53901a39725b86 (diff) | |
download | patchage-216eef86b39515911234d0f1d3bb23334e8d29f2.tar.gz patchage-216eef86b39515911234d0f1d3bb23334e8d29f2.tar.bz2 patchage-216eef86b39515911234d0f1d3bb23334e8d29f2.zip |
Added atomic int/pointer classes to Raul.
Added multi-writer queue to Raul.
Renamed Queue SRSWQueue (single-reader single-writer).
Updated patchage/ingen for Raul changes.
git-svn-id: http://svn.drobilla.net/lad/patchage@264 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/Patchage.cpp')
-rw-r--r-- | src/Patchage.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/Patchage.cpp b/src/Patchage.cpp index 61a9abd..b7f601c 100644 --- a/src/Patchage.cpp +++ b/src/Patchage.cpp @@ -295,9 +295,13 @@ Patchage::attach() bool Patchage::idle_callback() { - if (m_jack_driver) - while (m_jack_driver->events().fill() > 0) - m_jack_driver->events().pop().execute(); + if (m_jack_driver) { + while (!m_jack_driver->events().empty()) { + PatchageEvent& ev = m_jack_driver->events().front(); + m_jack_driver->events().pop(); + ev.execute(); + } + } bool refresh = m_refresh; |