summaryrefslogtreecommitdiff
path: root/libs/ardour/worker.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2012-08-27 04:08:48 +0000
committerRobin Gareus <robin@gareus.org>2012-08-27 04:08:48 +0000
commita8f0c3255f6f645913f57748d34db640bc7adcc2 (patch)
tree71b411f296de829ca57b7c715adddc351071d6f6 /libs/ardour/worker.cc
parent0a834da466ccb9c9223e5584915429f2d78f662c (diff)
fix LV2 worker
start worker thread after _sem and _exit have been initialized. stop thread when plugin is removed. git-svn-id: svn://localhost/ardour2/branches/3.0@13145 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/worker.cc')
-rw-r--r--libs/ardour/worker.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/ardour/worker.cc b/libs/ardour/worker.cc
index 290689f13c..67c72ffeba 100644
--- a/libs/ardour/worker.cc
+++ b/libs/ardour/worker.cc
@@ -26,12 +26,12 @@ namespace ARDOUR {
Worker::Worker(Workee* workee, uint32_t ring_size)
: _workee(workee)
- , _thread (Glib::Threads::Thread::create(sigc::mem_fun(*this, &Worker::run)))
, _requests(new RingBuffer<uint8_t>(ring_size))
, _responses(new RingBuffer<uint8_t>(ring_size))
, _response((uint8_t*)malloc(ring_size))
, _sem(0)
, _exit(false)
+ , _thread (Glib::Threads::Thread::create(sigc::mem_fun(*this, &Worker::run)))
{}
Worker::~Worker()