summaryrefslogtreecommitdiffstats
path: root/src/engine/EventSource.cpp
diff options
context:
space:
mode:
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