🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #6007

Re: Info sought on thread local storage (TLS)

#6007
From: Remy Lebeau (TeamB)
Date: Wed, 15 Jun 2005 22:54
20 lines
1792 bytes
"Helmut Giese" <hgiese@ratiosoft.com> wrote in message
news:42b0a9ef.20026212@forums.borland.com...

> while I am familiar with writing multi-threaded apps, the concept
> of thread local storage (TLS) is rather unknown to me.

Basically, an API thread object has an array available where applications
can store their own values to at runtime.  For the most part, you don't need
to worry about working with TLS, especially if you have classes wrapping
thread objects for you, such as the VCL's TThread class.

> Now it appears that the time has come where I will have to use this
> feature, so I am looking for some sort of a general overview on TLS
> (hopefully providing some examples).

The Win32 API documentation has a chapter on TLS.


Gambit
Technical Details
Message-ID: <42b0b31e@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news2.google.com!news.maxwell.syr.edu!border1.nntp.dca.giganews.com!nntp.giganews.com!newshosting.com!nx02.iad01.newshosting.com!diablo.voicenet.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <42b0a9ef.20026212@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,fe9ab360edfd8d88
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <42b0a9ef.20026212@forums.borland.com>
Subject: Re: Info sought on thread local storage (TLS)
Date: Wed, 15 Jun 2005 15:54:24 -0700
Lines: 22
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 68.69.17.41
Message-ID: <42b0b31e@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1118876446 68.69.17.41 (15 Jun 2005 16:00:46 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news2.google.com!news.maxwell.syr.edu!border1.nntp.dca.giganews.com!nntp.giganews.com!newshosting.com!nx02.iad01.newshosting.com!diablo.voicenet.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail