File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -64,8 +64,10 @@ inline static int thread_custom_name_attr(
6464 pthread_setname_np (t_handle , "meow!" , NULL );
6565#elif ZTD_IS_ON (ZTD_C_STDLIB_BSD ) && (ZTD_IS_ON (ZTD_PLATFORM_FREE_BSD ) || ZTD_IS_ON (ZTD_PLATFORM_OPEN_BSD ))
6666 pthread_set_name_np (t_handle , "meow!" );
67- #elif ZTD_IS_ON (ZTD_PLATFORM_WINDOWS )
67+ #elif ZTD_IS_ON (ZTD_PLATFORM_WINDOWS ) && ZTD_IS_OFF ( ZTD_COMPILER_MINGW )
6868 SetThreadDescription (t_handle , L"meow!" );
69+ #elif ZTD_IS_ON (ZTD_PLATFORM_WINDOWS ) && ZTD_IS_ON (ZTD_COMPILER_MINGW )
70+ pthread_setname_np (t_handle , "meow!" );
6971#endif
7072 return thrd_success ;
7173}
Original file line number Diff line number Diff line change @@ -112,7 +112,6 @@ ZTD_USE(ZTD_THREAD_API_LINKAGE)
112112// / @brief Returns the native handle out of `__thr`.
113113// /
114114// / @param[in] __thr The thread to get the native, platform-specific handle for.
115- // / @param[inout] __p_thrd_handle The native handle object which represents `__thr`.
116115// /
117116// / @return The native "handle" object which represents `__thr`. May be an invalid sentinel type if it can't fetch it
118117// / properly.
You can’t perform that action at this time.
0 commit comments