Function sdl2_sys::SDL_GetThreadName
source · pub unsafe extern "C" fn SDL_GetThreadName(
thread: *mut SDL_Thread,
) -> *const c_char
Expand description
Get the thread name as it was specified in SDL_CreateThread().
This is internal memory, not to be freed by the caller, and remains valid until the specified thread is cleaned up by SDL_WaitThread().
\param thread the thread to query \returns a pointer to a UTF-8 string that names the specified thread, or NULL if it doesn’t have a name.
\since This function is available since SDL 2.0.0.
\sa SDL_CreateThread