mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 07:14:56 +01:00
use correct type of lock when removing a thread request buffer
This commit is contained in:
parent
5e4d9612e3
commit
9ab92a67c8
1 changed files with 1 additions and 1 deletions
|
|
@ -222,7 +222,7 @@ EventLoop::pre_register (const string& emitting_thread_name, uint32_t num_reques
|
||||||
void
|
void
|
||||||
EventLoop::remove_request_buffer_from_map (void* ptr)
|
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) {
|
for (ThreadRequestBufferList::iterator x = thread_buffer_requests.begin(); x != thread_buffer_requests.end(); ++x) {
|
||||||
if (x->second.request_buffer == ptr) {
|
if (x->second.request_buffer == ptr) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue