Article View: borland.public.cppbuilder.nativeapi
Article #6012Re: Info sought on thread local storage (TLS)
From: Ed Mulroy
Date: Wed, 15 Jun 2005 23:28
Date: Wed, 15 Jun 2005 23:28
24 lines
1930 bytes
1930 bytes
Warning: Thread Local Storage, TLS, provides a very small amount of memory. Every compiler supplies an alternate function to that provided by Win32 for starting a thread. The compiler-supplied function(s) set up a data block and place the address of that block and possibly some flags into the TLS memory. If you alter TLS memory you may crash the program and possibly crash the machine. If you Win32 function to start the thread in a C/C++ program then you also risk causing a crash. . Ed > Helmut Giese wrote in message > news:42b0a9ef.20026212@forums.borland.com... > > Hello out there, > while I am familiar with writing multi-threaded apps, the concept of > thread local storage (TLS) is rather unknown to me. > 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). > Any links will be greatly appreciated.
Technical Details
Message-ID:
<42b0b9b5@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<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: "Ed Mulroy" <dont_email_me@bitbuc.ket> 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 19:28:51 -0400 Lines: 26 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-RFC2646: Format=Flowed; Original NNTP-Posting-Host: 4.238.212.76 Message-ID: <42b0b9b5@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1118878133 4.238.212.76 (15 Jun 2005 16:28:53 -0700) X-Authenticated-User: edmulroy Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mail