mirror of
https://github.com/odin-lang/Odin.git
synced 2026-08-04 13:18:31 +00:00
fix tid/handle bug on macos/win
This commit is contained in:
@@ -223,7 +223,9 @@ _set_name :: proc(thread: ^Thread) {
|
||||
return
|
||||
}
|
||||
|
||||
tid := thread.unix_thread
|
||||
when ODIN_OS != .Darwin {
|
||||
tid := thread.unix_thread
|
||||
}
|
||||
|
||||
buf: [_MAX_PTHREAD_NAME_LENGTH]u8
|
||||
copy(buf[:], name)
|
||||
|
||||
@@ -179,7 +179,7 @@ _set_name :: proc(thread: ^Thread) {
|
||||
return
|
||||
}
|
||||
|
||||
t_handle = thread.win32_thread
|
||||
t_handle := thread.win32_thread
|
||||
|
||||
buf: [_THREAD_DESCRIPTION_LENGTH]u16
|
||||
// _THREAD_DESCRIPTION_LENGTH includes terminating null
|
||||
|
||||
Reference in New Issue
Block a user