mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-08-20 09:57:09 +00:00
feat: TlsAlloc, TlsAlloc, TlsGetValue and TlsSetValue implemented.
This commit is contained in:
parent
56863120a1
commit
9d293eb245
|
|
@ -5,9 +5,13 @@
|
||||||
|
|
||||||
using namespace std::chrono;
|
using namespace std::chrono;
|
||||||
|
|
||||||
// thread local storage
|
class C4JThread;
|
||||||
|
|
||||||
|
// thread local storage
|
||||||
|
inline LPVOID TlsFree(DWORD dwTlsIndex) { return TLSStorageCross64::Instance()->Free(dwTlsIndex); }
|
||||||
inline DWORD TlsAlloc(VOID) { return TLSStorageCross64::Instance()->Alloc(); }
|
inline DWORD TlsAlloc(VOID) { return TLSStorageCross64::Instance()->Alloc(); }
|
||||||
|
inline LPVOID TlsGetValue(DWORD dwTlsIndex) { return TLSStorageCross64::Instance()->GetValue(dwTlsIndex); }
|
||||||
|
inline BOOL TlsSetValue(DWORD dwTlsIndex, LPVOID lpTlsValue) { return TLSStorageCross64::Instance()->SetValue(dwTlsIndex, lpTlsValue); }
|
||||||
|
|
||||||
typedef struct _SYSTEMTIME {
|
typedef struct _SYSTEMTIME {
|
||||||
WORD wYear;
|
WORD wYear;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue