mirror of
https://github.com/XTXMarkets/ternfs.git
synced 2026-01-06 02:49:45 -06:00
Re-introduce thread names (they got lost in a refactor)
This commit is contained in:
@@ -47,6 +47,12 @@ static void* startLoop(void* rawLoop) {
|
||||
throw EXPLICIT_SYSCALL_EXCEPTION(ret, "pthread_sigmask");
|
||||
}
|
||||
}
|
||||
{
|
||||
int ret = pthread_setname_np(pthread_self(), loop->name().c_str());
|
||||
if (ret != 0) {
|
||||
throw EXPLICIT_SYSCALL_EXCEPTION(ret, "pthread_setname_np");
|
||||
}
|
||||
}
|
||||
loop->run();
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user