summaryrefslogtreecommitdiffstats
path: root/src/engine/EventSource.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-04-16 19:02:36 +0000
committerDavid Robillard <d@drobilla.net>2011-04-16 19:02:36 +0000
commit9e5a7cf49ad84a5a3fa0aa61be11129fc4df1cc2 (patch)
tree089c1366a567dfbf88c0473288236b276ef24bf6 /src/engine/EventSource.cpp
parent987710474b824cb92d83ff6fa7a090f50e10756f (diff)
downloadingen-9e5a7cf49ad84a5a3fa0aa61be11129fc4df1cc2.tar.gz
ingen-9e5a7cf49ad84a5a3fa0aa61be11129fc4df1cc2.tar.bz2
ingen-9e5a7cf49ad84a5a3fa0aa61be11129fc4df1cc2.zip
Squeeze blank lines and delete trailing whitespace.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3152 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/engine/EventSource.cpp')
-rw-r--r--src/engine/EventSource.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/engine/EventSource.cpp b/src/engine/EventSource.cpp
index ebc12052..a3664d92 100644
--- a/src/engine/EventSource.cpp
+++ b/src/engine/EventSource.cpp
@@ -26,7 +26,6 @@ using namespace std;
namespace Ingen {
-
EventSource::EventSource(size_t queue_size)
: _blocking_semaphore(0)
{
@@ -34,13 +33,11 @@ EventSource::EventSource(size_t queue_size)
set_name("EventSource");
}
-
EventSource::~EventSource()
{
Thread::stop();
}
-
/** Push an unprepared event onto the queue.
*/
void
@@ -55,7 +52,6 @@ EventSource::push_queued(QueuedEvent* const ev)
whip();
}
-
/** Process all events for a cycle.
*
* Executed events will be pushed to @a dest.
@@ -81,7 +77,7 @@ EventSource::process(PostProcessor& dest, ProcessContext& context, bool limit)
if (!head)
return;
-
+
QueuedEvent* ev = (QueuedEvent*)head->elem();
while (ev && ev->is_prepared() && ev->time() < context.end()) {
@@ -101,7 +97,6 @@ EventSource::process(PostProcessor& dest, ProcessContext& context, bool limit)
}
}
-
/** Pre-process a single event */
void
EventSource::_whipped()
@@ -126,6 +121,5 @@ EventSource::_whipped()
_blocking_semaphore.wait();
}
-
} // namespace Ingen