mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-02-06 06:55:07 +00:00
Set posix thread name for debug build (#3657)
This commit is contained in:
parent
3b56e7c607
commit
a9cd8ba87a
|
@ -48,6 +48,13 @@ os_thread_wrapper(void *arg)
|
|||
#endif
|
||||
#ifdef OS_ENABLE_WAKEUP_BLOCKING_OP
|
||||
os_end_blocking_op();
|
||||
#endif
|
||||
#if BH_DEBUG != 0
|
||||
#if defined __APPLE__
|
||||
pthread_setname_np("wamr");
|
||||
#else
|
||||
pthread_setname_np(pthread_self(), "wamr");
|
||||
#endif
|
||||
#endif
|
||||
start_func(thread_arg);
|
||||
#ifdef OS_ENABLE_HW_BOUND_CHECK
|
||||
|
|
Loading…
Reference in New Issue
Block a user