Files
radiantwave/archive/vendor/github.com/veandco/go-sdl2/sdl/thread.go
T
2026-08-07 14:51:41 -05:00

11 lines
228 B
Go

package sdl
// #include "sdl_wrapper.h"
import "C"
// CurrentThreadID gets the thread identifier for the current thread.
// (https://wiki.libsdl.org/SDL_ThreadID)
func CurrentThreadID() uint {
return uint(C.SDL_ThreadID())
}