Home
last modified time | relevance | path

Searched refs:thread_name (Results 1 – 4 of 4) sorted by relevance

/libuv/test/
H A Dtest-thread-name.c35 char thread_name[16]; in thread_run() local
53 r = uv_thread_getname(&thread, thread_name, sizeof(thread_name)); in thread_run()
56 ASSERT_STR_EQ(thread_name, "worker-thread"); in thread_run()
61 TEST_IMPL(thread_name) { in TEST_IMPL() argument
65 char thread_name[UV_PTHREAD_MAX_NAMELEN_NP]; in TEST_IMPL() local
79 memset(thread_name, 'a', sizeof(thread_name) - 1); in TEST_IMPL()
80 thread_name[sizeof(thread_name) - 1] = '\0'; in TEST_IMPL()
100 ASSERT_STR_EQ(tn, thread_name); in TEST_IMPL()
102 r = uv_thread_setname(thread_name); in TEST_IMPL()
107 ASSERT_STR_EQ(tn, thread_name); in TEST_IMPL()
[all …]
H A Dtest-list.h481 TEST_DECLARE (thread_name)
1199 TEST_ENTRY (thread_name)
/libuv/src/unix/
H A Dthread.c947 char thread_name[UV_PTHREAD_MAX_NAMELEN_NP]; in uv__thread_getname() local
948 pthread_get_name_np(*tid, thread_name, sizeof(thread_name)); in uv__thread_getname()
949 strncpy(name, thread_name, size - 1); in uv__thread_getname()
955 char thread_name[UV_PTHREAD_MAX_NAMELEN_NP]; in uv__thread_getname() local
956 if (pthread_getname_np(*tid, thread_name, sizeof(thread_name)) != 0) in uv__thread_getname()
959 strncpy(name, thread_name, size - 1); in uv__thread_getname()
966 char thread_name[UV_PTHREAD_MAX_NAMELEN_NP]; in uv__thread_getname() local
967 r = pthread_getname_np(*tid, thread_name, sizeof(thread_name)); in uv__thread_getname()
971 strncpy(name, thread_name, size - 1); in uv__thread_getname()
/libuv/src/win/
H A Dthread.c310 char* thread_name; in uv_thread_getname() local
326 thread_name = NULL; in uv_thread_getname()
334 r = uv__convert_utf16_to_utf8(namew, wcslen(namew), &thread_name); in uv_thread_getname()
336 uv__strscpy(name, thread_name, size); in uv_thread_getname()
337 uv__free(thread_name); in uv_thread_getname()

Completed in 11 milliseconds