mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-15 04:50:43 +02:00
Add thread names
This commit is contained in:
@@ -775,7 +775,11 @@ class AdHocSocketHandler {
|
||||
std::move(secondary_socket));
|
||||
});
|
||||
|
||||
Thread secondary_requests_handler([&]() { secondary_context.run(); });
|
||||
Thread secondary_requests_handler([&]() {
|
||||
pthread_setname_np(pthread_self(), "adhoc-acceptor");
|
||||
|
||||
secondary_context.run();
|
||||
});
|
||||
|
||||
// Now we'll handle reads on the primary socket in a loop until the
|
||||
// socket shuts down
|
||||
|
||||
Reference in New Issue
Block a user