Article View: comp.lang.c
Article #1622Re: Where does my thread-local data live ?
From: 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.
Technical Details
Message-ID:
<11djrd8$16qq7$1@dont-email.me>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mailReferences:
<11da9lq$25qpm$3@raubtier-asyl.eternal-september.org> <11dd5co$32h74$1@dont-email.me> <11dhcb5$bitr$1@raubtier-asyl.eternal-september.org> <11diqca$tdad$3@dont-email.me> <11djha7$13ogp$1@dont-email.me>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail From: "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> Newsgroups: comp.lang.c Subject: Re: Where does my thread-local data live ? Date: Wed, 18 Nov 2026 01:33:27 -0800 Organization: A noiseless patient Spider Lines: 11 Message-ID: <11djrd8$16qq7$1@dont-email.me> References: <11da9lq$25qpm$3@raubtier-asyl.eternal-september.org> <11dd5co$32h74$1@dont-email.me> <11dhcb5$bitr$1@raubtier-asyl.eternal-september.org> <11diqca$tdad$3@dont-email.me> <11djha7$13ogp$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Wed, 18 Nov 2026 09:33:28 +0000 (UTC) Injection-Info: dont-email.me; logging-data="1272647"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+tkxFjhXDR6ie53HXuTmPXkZpchPLWF/A="; posting-host="893e20b5c86f3e4847392c6cf1971416" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:s/8GfBPxuUkBN5mD0vb679A67hQ= sha256:/7pBlxhxmm81ZcOKi6kBzLtQ8cbG5VBi2VURI0bqT4w= sha1:7XqTLC0iNJhGGofEKWixFx5VjuQ= sha256:T77NNVRi8QItG7PnO3tsNqmCw4lD3A2IlYSRr4m/rUU= In-Reply-To: <11djha7$13ogp$1@dont-email.me> Content-Language: en-US