Skip to content

Commit 74496ca

Browse files
committed
Implemeted naming threads on Linux targets.
1 parent 41e9bfb commit 74496ca

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

source/code/core/tasks/private/task_native_thread.cxx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,11 @@ namespace ice
326326
{
327327
emscripten_set_thread_name(pthread_self(), ice::string::begin(thread_info.debug_name));
328328
}
329+
#elif ISP_LINUX
330+
if constexpr (ice::build::is_release == false)
331+
{
332+
pthread_setname_np(pthread_self(), ice::string::begin(thread_info.debug_name));
333+
}
329334
#endif
330335

331336
ice::ThreadRuntime& runtime = thread_obj->runtime();

0 commit comments

Comments
 (0)