"Chris M. Thomasson" <chri…@gmail.com> wrote:
> On 11/17/2026 10:34 PM, Stefan Kanthak wrote:
>> "Chris M. Thomasson" <chri…@gmail.com> wrote: >>
>>> What about: >>> >>> __declspec(thread) int x;
> Oh yeah. For DLL's, TlsAlloc and friends are the way to go. Iirc, in > DLLMain, set everything up.
OUCH: better crawl from under the rock where you stayed 20+ years! Windows Vista and later versions of NT support __declspec(thread) in DLLs, there's no need for TlsAlloc() and friends any more in the first place. Stefan