Files
Odin/base/runtime/threading_windows.odin
2025-05-08 11:06:00 -04:00

14 lines
269 B
Odin

#+private
package runtime
foreign import Kernel32 "system:Kernel32.lib"
@(default_calling_convention="system")
foreign Kernel32 {
GetCurrentThreadId :: proc() -> u32 ---
}
_get_current_thread_id :: proc "contextless" () -> int {
return int(GetCurrentThreadId())
}