mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-06-27 21:26:05 +00:00
Remove DWORD from shared TLS keys
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user