mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-24 07:27:44 +01:00
try to avoid output pthread_t as-is, due to MSVC etc.
This commit is contained in:
parent
c16ee928de
commit
35b5861195
4 changed files with 9 additions and 6 deletions
|
|
@ -115,10 +115,10 @@ EventLoop::get_request_buffers_for_target_thread (const std::string& target_thre
|
|||
vector<ThreadBufferMapping> ret;
|
||||
Glib::Threads::Mutex::Lock lm (thread_buffer_requests_lock);
|
||||
|
||||
DEBUG_TRACE (PBD::DEBUG::EventLoop, string_compose ("%1 look for request buffers via %2\n", pthread_name(), target_thread));
|
||||
DEBUG_TRACE (PBD::DEBUG::EventLoop, string_compose ("%1 look for request buffers via %2\n", pthread_name(), DEBUG_THREAD_PRINT (target_thread)));
|
||||
|
||||
for (auto const & tbr : thread_buffer_requests) {
|
||||
DEBUG_TRACE (PBD::DEBUG::EventLoop, string_compose ("for thread \"%1\", request buffer for %2 (%3) thread %4\n", target_thread, tbr.emitting_thread, tbr.num_requests));
|
||||
DEBUG_TRACE (PBD::DEBUG::EventLoop, string_compose ("for thread \"%1\", request buffer for %2 (%3) thread %4\n", target_thread, DEBUG_THREAD_PRINT(tbr.emitting_thread), tbr.num_requests));
|
||||
ret.push_back (tbr);
|
||||
}
|
||||
|
||||
|
|
@ -191,7 +191,7 @@ EventLoop::remove_request_buffer_from_map (pthread_t pth)
|
|||
Glib::Threads::Mutex::Lock lm (thread_buffer_requests_lock);
|
||||
|
||||
for (ThreadRequestBufferList::iterator x = thread_buffer_requests.begin(); x != thread_buffer_requests.end(); ++x) {
|
||||
if (x->emitting_thread == pth) {
|
||||
if (pthread_equal (x->emitting_thread, pth)) {
|
||||
thread_buffer_requests.erase (x);
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue