Article View: borland.public.cppbuilder.nativeapi
Article #5997Re: Info sought on thread local storage (TLS)
From: Helmut Giese
Date: Fri, 17 Jun 2005 09:17
Date: Fri, 17 Jun 2005 09:17
24 lines
2262 bytes
2262 bytes
>What exactly are you trying to accomplish in the first place? Typically, >wrapping the thread in its own class is much more flexible than using TLS. >Then you can put whatever you want into the class. TLS is typiucally only >used by the OS for its own internal uses (storing COM thread concurrency >flags, GetLastError() error codes, etc). Hi Gambit, I am at the design phase of simulating a microcontroller. One thread will handle the main program while each interrupt service routine will get its own thread, so that they can interrupt each other "like in the real world". The whole concept is still somewhat misty and at one point in time I thought I might need TLS - or rather learn enough about TLS to be able to judge whether it would be helpful here. The problematic part for the moment is that all these threads will do some reporting (we want to know what's going one) and this is the bottleneck right now: they can (and will) interrupt each other there and I want a robust design which can be carried over to "Version 2" (when we add simulating an RTOS - Real Time OS - on top of this). We'll just leave it at this point for the moment. I'm at the drawing board drawing little pictures ... Best regards Helmut Giese
Technical Details
Message-ID:
<42b2925c.1446888@forums.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!meganewsservers.com!feeder2.on.meganewsservers.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<42b0a9ef.20026212@forums.borland.com> <42b0b9b5@newsgroups.borland.com> <42b157a3.899064@forums.borland.com> <42b1c0c4$1@newsgroups.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: hgiese@ratiosoft.com (Helmut Giese) Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Info sought on thread local storage (TLS) Date: Fri, 17 Jun 2005 09:17:08 GMT Message-ID: <42b2925c.1446888@forums.borland.com> References: <42b0a9ef.20026212@forums.borland.com> <42b0b9b5@newsgroups.borland.com> <42b157a3.899064@forums.borland.com> <42b1c0c4$1@newsgroups.borland.com> X-Newsreader: Forte Free Agent 1.11/32.235 NNTP-Posting-Host: 84.138.8.193 X-Trace: newsgroups.borland.com 1118999761 84.138.8.193 (17 Jun 2005 02:16:01 -0700) Lines: 24 Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!meganewsservers.com!feeder2.on.meganewsservers.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail