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 | 6fc1fa0d3bec4b82cb3af4c4e887241087899e7e (patch) | |
tree | 642326c791c1cac6390b8cc10f6b5fac52e0f36e /src/libs/engine/Maid.cpp | |
parent | 6a03dfaf79aa0713df17b03880aaedb3fa8984eb (diff) | |
download | ingen-6fc1fa0d3bec4b82cb3af4c4e887241087899e7e.tar.gz ingen-6fc1fa0d3bec4b82cb3af4c4e887241087899e7e.tar.bz2 ingen-6fc1fa0d3bec4b82cb3af4c4e887241087899e7e.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/ingen@264 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/engine/Maid.cpp')
-rw-r--r-- | src/libs/engine/Maid.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/libs/engine/Maid.cpp b/src/libs/engine/Maid.cpp index b6b4e4c7..005c544f 100644 --- a/src/libs/engine/Maid.cpp +++ b/src/libs/engine/Maid.cpp @@ -19,7 +19,7 @@ Maid::Maid(size_t size) -: m_objects(size) +: _objects(size) { } @@ -37,8 +37,9 @@ Maid::cleanup() { MaidObject* obj = NULL; - while (!m_objects.is_empty()) { - obj = m_objects.pop(); + while (!_objects.empty()) { + obj = _objects.front(); + _objects.pop(); delete obj; } } |