mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-26 07:48:42 +00:00
Added TLS initialization and shutdown functions
Fixes https://github.com/libsdl-org/SDL/issues/8576 (cherry picked from commitb517043936) (cherry picked from commit551164812a)
This commit is contained in:
parent
d133701a72
commit
87ba287f81
8 changed files with 169 additions and 67 deletions
|
|
@ -22,6 +22,11 @@
|
|||
#include "../../SDL_internal.h"
|
||||
#include "../SDL_thread_c.h"
|
||||
|
||||
void SDL_SYS_InitTLSData(void)
|
||||
{
|
||||
SDL_Generic_InitTLSData();
|
||||
}
|
||||
|
||||
SDL_TLSData *SDL_SYS_GetTLSData(void)
|
||||
{
|
||||
return SDL_Generic_GetTLSData();
|
||||
|
|
@ -32,4 +37,9 @@ int SDL_SYS_SetTLSData(SDL_TLSData *data)
|
|||
return SDL_Generic_SetTLSData(data);
|
||||
}
|
||||
|
||||
void SDL_SYS_QuitTLSData(void)
|
||||
{
|
||||
SDL_Generic_QuitTLSData();
|
||||
}
|
||||
|
||||
/* vi: set ts=4 sw=4 expandtab: */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue