sdlCreateThreadWithPropertiesRuntime function
Pointer<SdlThread>
sdlCreateThreadWithPropertiesRuntime(
- int props,
- Pointer<
NativeType> pfnBeginThread, - Pointer<
NativeType> pfnEndThread
The actual entry point for SDL_CreateThreadWithProperties.
\param props the properties to use \param pfnBeginThread the C runtime's _beginthreadex (or whatnot). Can be NULL. \param pfnEndThread the C runtime's _endthreadex (or whatnot). Can be NULL. \returns an opaque pointer to the new thread object on success, NULL if the new thread could not be created; call SDL_GetError() for more information.
\since This function is available since SDL 3.1.3.
extern SDL_DECLSPEC SDL_Thread * SDLCALL SDL_CreateThreadWithPropertiesRuntime(SDL_PropertiesID props, SDL_FunctionPointer pfnBeginThread, SDL_FunctionPointer pfnEndThread)
Implementation
Pointer<SdlThread> sdlCreateThreadWithPropertiesRuntime(int props,
Pointer<NativeType> pfnBeginThread, Pointer<NativeType> pfnEndThread) {
final sdlCreateThreadWithPropertiesRuntimeLookupFunction =
libSdl3.lookupFunction<
Pointer<SdlThread> Function(
Uint32 props,
Pointer<NativeType> pfnBeginThread,
Pointer<NativeType> pfnEndThread),
Pointer<SdlThread> Function(
int props,
Pointer<NativeType> pfnBeginThread,
Pointer<NativeType> pfnEndThread)>(
'SDL_CreateThreadWithPropertiesRuntime');
return sdlCreateThreadWithPropertiesRuntimeLookupFunction(
props, pfnBeginThread, pfnEndThread);
}