History log of /libuv/test/test-thread-name.c (Results 1 – 2 of 2)
Revision Date Author Comments
# 7752218d 12-Dec-2024 Saúl Ibarra Corretgé

fixup!


# 61c966cf 27-Nov-2024 Santiago Gimeno

src: add uv_thread_set/getname() methods (#4599)

`uv_thread_setname()` sets the name of the current thread. Different
platforms define different limits on the max number of characters

src: add uv_thread_set/getname() methods (#4599)

`uv_thread_setname()` sets the name of the current thread. Different
platforms define different limits on the max number of characters
a thread name can be: Linux, IBMi (16), macOS (64), Windows (32767),
and NetBSD (32), etc. `uv_thread_setname()` will truncate it in case
`name` is larger than the limit of the platform.

`uv_thread_getname()` gets the name of the thread specified by `tid`.
The thread name is copied into the buffer pointed to by `name`. The
`size` parameter specifies the size of the buffer pointed to by `name`.
The buffer should be large enough to hold the name of the thread plus
the trailing NUL, or it will be truncated to fit.

show more ...