Set shorter thread names (#379)

This commit is contained in:
Benjamin Sergeant 2022-04-30 10:16:53 -07:00 committed by GitHub
parent edb6ded99f
commit 84aa652846
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -268,7 +268,10 @@ namespace ix
// Set the socket to non blocking mode, so that accept calls are not blocking // Set the socket to non blocking mode, so that accept calls are not blocking
SocketConnect::configure(_serverFd); SocketConnect::configure(_serverFd);
setThreadName("SocketServer::accept"); // Use a cryptic name to stay within the 16 bytes limit thread name limitation
// $ echo Srv:gc:64000 | wc -c
// 13
setThreadName("Srv:ac:" + std::to_string(_port));
for (;;) for (;;)
{ {
@ -425,7 +428,10 @@ namespace ix
void SocketServer::runGC() void SocketServer::runGC()
{ {
setThreadName("SocketServer::GC"); // Use a cryptic name to stay within the 16 bytes limit thread name limitation
// $ echo Srv:gc:64000 | wc -c
// 13
setThreadName("Srv:gc:" + std::to_string(_port));
for (;;) for (;;)
{ {