libuv/src
Santiago Gimeno 61c966cf0b
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.
2024-11-27 12:52:18 +01:00
..
unix src: add uv_thread_set/getname() methods (#4599) 2024-11-27 12:52:18 +01:00
win src: add uv_thread_set/getname() methods (#4599) 2024-11-27 12:52:18 +01:00
fs-poll.c unix,win: harmonize buffer checking 2024-11-25 15:10:47 +01:00
heap-inl.h heap: fix heap_remove() 2014-05-23 20:04:42 +04:00
idna.c unix,win: fix off-by-one in uv_wtf8_to_utf16() (#4609) 2024-11-19 19:09:03 +01:00
idna.h misc: export WTF8 conversion utilities (#4021) 2023-10-28 21:04:57 -04:00
inet.c unix,win: fix 'sprintf' is deprecated warning (#3813) 2022-11-08 09:56:14 +01:00
queue.h unix,win: replace QUEUE with struct uv__queue (#4022) 2023-05-25 00:04:30 +02:00
random.c unix,win: remove unused req parameter from macros (#4435) 2024-07-11 21:29:15 +02:00
strscpy.c nfci: address some style nits 2020-08-21 17:25:42 -04:00
strscpy.h hurd: unbreak build on GNU/Hurd (#3450) 2022-02-23 12:04:18 -05:00
strtok.c core: add thread-safe strtok implementation (#3553) 2022-03-22 15:15:00 -04:00
strtok.h core: add thread-safe strtok implementation (#3553) 2022-03-22 15:15:00 -04:00
thread-common.c barrier: wait for prior out before next in (#3905) 2023-03-06 17:57:25 -05:00
threadpool.c unix,win: remove unused req parameter from macros (#4435) 2024-07-11 21:29:15 +02:00
timer.c unix,win: reset the timer queue on stop (#4304) 2024-02-07 10:43:29 +01:00
uv-common.c unix,win: harmonize buffer checking 2024-11-25 15:10:47 +01:00
uv-common.h src: add uv_thread_set/getname() methods (#4599) 2024-11-27 12:52:18 +01:00
uv-data-getter-setters.c nfci: address some style nits 2020-08-21 17:25:42 -04:00
version.c core: add UV_VERSION_HEX macro 2015-06-29 23:08:41 +02:00