h1-mod/src/tlsdll/dllmain.cpp

8 lines
148 B
C++
Raw Normal View History

2022-02-03 14:05:24 -05:00
#define TLS_PAYLOAD_SIZE 0x2000
thread_local char tls_data[TLS_PAYLOAD_SIZE];
__declspec(dllexport) void* get_tls_data()
{
return &tls_data[0];
}