On 11/17/2026 10:34 PM, Stefan Kanthak wrote:
> "Chris M. Thomasson" <chri…@gmail.com> wrote:
>
>> What about:
>>
>> __declspec(thread) int x;
>
> Take a look at <https://skanthak.hier-im-netz.de/blunder.html#blunder114>
> as well as <https://skanthak.hier-im-netz.de/msvcrt.html#tls>
Oh yeah. For DLL's, TlsAlloc and friends are the way to go. Iirc, in DLLMain, set everything up.