1
0
mirror of https://github.com/Zygo/bees.git synced 2025-06-16 09:36:17 +02:00

task: increase saved thread name length to 64

24 bytes seems a little low.  64 is a rounder (and more square) number.

Signed-off-by: Zygo Blaxell <bees@furryterror.org>
This commit is contained in:
Zygo Blaxell
2022-11-19 02:45:18 -05:00
parent cdef59e2f3
commit 2aafa802a9

View File

@ -300,7 +300,7 @@ namespace crucible {
swap(this_task, tl_current_task); swap(this_task, tl_current_task);
lock.unlock(); lock.unlock();
char buf[24] = { 0 }; char buf[64] = { 0 };
DIE_IF_MINUS_ERRNO(pthread_getname_np(pthread_self(), buf, sizeof(buf))); DIE_IF_MINUS_ERRNO(pthread_getname_np(pthread_self(), buf, sizeof(buf)));
DIE_IF_MINUS_ERRNO(pthread_setname_np(pthread_self(), m_title.c_str())); DIE_IF_MINUS_ERRNO(pthread_setname_np(pthread_self(), m_title.c_str()));