🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: de.comp.lang.c
Article #13

Re: Where does my thread-local data live ?

#13
From: Bonita Montero
Date: Thu, 19 Nov 2026 15:45
9 lines
1889 bytes
Am 18.11.2026 um 21:59 schrieb Chris M. Thomasson:

> Yeah. Also, in a dll: TlsAlloc and friends are the way to go.
> Iirc, in DLLMain, set everything up.

You can write your own DllMain without honouring TlsAlloc.
The kernel does everything for you and places the right
TLS-index in the thread-information block.
Technical Details
Message-ID: <11dn5jg$2cpjr$1@raubtier-asyl.eternal-september.org>
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!raubtier-asyl.eternal-september.org!.POSTED!not-for-mail
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> <11dkcg0$1digo$1@raubtier-asyl.eternal-september.org> <11dl3jd$1n3bs$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!raubtier-asyl.eternal-september.org!.POSTED!not-for-mail
From: Bonita Montero <Bonita.Montero@gmail.com>
Newsgroups: comp.lang.c++,de.comp.lang.c
Subject: Re: Where does my thread-local data live ?
Date: Thu, 19 Nov 2026 16:45:53 +0100
Organization: A noiseless patient Spider
Lines: 9
Message-ID: <11dn5jg$2cpjr$1@raubtier-asyl.eternal-september.org>
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>
 <11dkcg0$1digo$1@raubtier-asyl.eternal-september.org>
 <11dl3jd$1n3bs$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 19 Nov 2026 15:45:52 +0000 (UTC)
Injection-Info: raubtier-asyl.eternal-september.org;
	logging-data="2516603"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX198YHPzObIaI4pbZ19qjZT0Cxv8dQrxUTM="; posting-host="3c9ab050108bc5958cb0e6d7c97bef08"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:L6BFjyfI3TknnHPz2Rx8zyLKNa0= sha256:w0+LVFSCIZFoYT14JsEGbKpz/ih9XNUOR9aDEDyM7Uw=
	sha1:036W3/187ukYBMc1d+OM8ER6vOg= sha256:34mo6lPPLFNzDBc/IBawd+6zhu2XFKw5g7O9Xa6jiVQ=
Content-Language: de-DE
In-Reply-To: <11dl3jd$1n3bs$1@dont-email.me>