Remove DWORD from shared TLS keys

This commit is contained in:
notmatthewbeshay
2026-03-14 06:28:46 +11:00
parent f4d8815285
commit 2180aaa4bc
12 changed files with 74 additions and 56 deletions

View File

@@ -23,12 +23,12 @@ const float PistonBaseTile::PLATFORM_THICKNESS = 4.0f;
namespace
{
#if defined(_WIN32)
inline void *PistonTlsGetValue(DWORD key)
inline void *PistonTlsGetValue(PistonBaseTile::TlsKey key)
{
return TlsGetValue(key);
}
inline void PistonTlsSetValue(DWORD key, void *value)
inline void PistonTlsSetValue(PistonBaseTile::TlsKey key, void *value)
{
TlsSetValue(key, value);
}
@@ -53,9 +53,9 @@ namespace
}
#if defined(_WIN32)
DWORD PistonBaseTile::tlsIdx = TlsAlloc();
PistonBaseTile::TlsKey PistonBaseTile::tlsIdx = TlsAlloc();
#else
pthread_key_t PistonBaseTile::tlsIdx = CreatePistonTlsKey();
PistonBaseTile::TlsKey PistonBaseTile::tlsIdx = CreatePistonTlsKey();
#endif
// 4J - NOTE - this ignoreUpdate stuff has been removed from the java version, but I'm not currently sure how the java version does without it... there must be