summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2016-01-14 11:00:40 -0500
committerPaul Davis <paul@linuxaudiosystems.com>2016-01-14 11:00:40 -0500
commit9ab92a67c856e371b292d701f2068207efe79af3 (patch)
tree5e562978ecb5b59bb33c69d228e70e0d62db8ede /libs
parent5e4d9612e384fc922284c830de68056fe6ad2f4a (diff)
use correct type of lock when removing a thread request buffer
Diffstat (limited to 'libs')
-rw-r--r--libs/pbd/event_loop.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/pbd/event_loop.cc b/libs/pbd/event_loop.cc
index 424636feda..3f5eeb0a75 100644
--- a/libs/pbd/event_loop.cc
+++ b/libs/pbd/event_loop.cc
@@ -222,7 +222,7 @@ EventLoop::pre_register (const string& emitting_thread_name, uint32_t num_reques
void
EventLoop::remove_request_buffer_from_map (void* ptr)
{
- Glib::Threads::RWLock::ReaderLock lm (thread_buffer_requests_lock);
+ Glib::Threads::RWLock::WriterLock lm (thread_buffer_requests_lock);
for (ThreadRequestBufferList::iterator x = thread_buffer_requests.begin(); x != thread_buffer_requests.end(); ++x) {
if (x->second.request_buffer == ptr) {