Thread View: comp.lang.c
1 messages
1 total messages
Started by Chris M. Thomasson
Wed, 18 Nov 2026 09:33
Re: Where does my thread-local data live ?
Author: Chris M. Thomasson
Date: Wed, 18 Nov 2026 09:33
Date: Wed, 18 Nov 2026 09:33
11 lines
1813 bytes
1813 bytes
On 11/17/2026 10:34 PM, Stefan Kanthak wrote: > "Chris M. Thomasson" <chris.m.thomasson.1@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.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads