mirror of
https://git.sr.ht/~thestr4ng3r/chiaki
synced 2025-08-14 18:57:07 -07:00
Disable Windows Thread Name by default (Fix #7)
This commit is contained in:
parent
08f5a3d4bf
commit
8e5ad25c3c
1 changed files with 3 additions and 1 deletions
|
@ -66,9 +66,11 @@ CHIAKI_EXPORT ChiakiErrorCode chiaki_thread_join(ChiakiThread *thread, void **re
|
|||
return CHIAKI_ERR_SUCCESS;
|
||||
}
|
||||
|
||||
//#define CHIAKI_WINDOWS_THREAD_NAME
|
||||
|
||||
CHIAKI_EXPORT ChiakiErrorCode chiaki_thread_set_name(ChiakiThread *thread, const char *name)
|
||||
{
|
||||
#ifdef _WIN32
|
||||
#if defined(_WIN32) && defined(CHIAKI_WINDOWS_THREAD_NAME)
|
||||
int len = MultiByteToWideChar(CP_UTF8, 0, name, -1, NULL, 0);
|
||||
wchar_t *wstr = calloc(sizeof(wchar_t), len+1);
|
||||
if(!wstr)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue