[−][src]Function sdl2_sys::SDL_TLSSet
pub unsafe extern "C" fn SDL_TLSSet(
id: SDL_TLSID,
value: *const c_void,
destructor: Option<unsafe extern "C" fn(arg1: *mut c_void)>
) -> c_int
\brief Set the value associated with a thread local storage ID for the current thread.
\param id The thread local storage ID \param value The value to associate with the ID for the current thread \param destructor A function called when the thread exits, to free the value.
\return 0 on success, -1 on error
\sa SDL_TLSCreate() \sa SDL_TLSGet()