Article View: comp.os.os2.programmer.misc
Article #257Re: Thread-specific variables?
From: Bob Dedrick
Date: Sat, 02 Oct 1993 02:09
Date: Sat, 02 Oct 1993 02:09
16 lines
1577 bytes
1577 bytes
In article <28efue$478@access.digex.net> kbennett@access.digex.net (Keith R. Bennett) writes: > >I have a question about thread programming. Is there any way to make >a given variable specific to an instance of a thread? > >[...] There is no way (that I know of) to make a *global* variable specific to a thread. However, since each thread has its own stack, any variables allocated on the stack (as automatics or using _alloca()) will be thread- specific. -- Bob Dedrick | Internet: bob@dev.prodigy.com Prodigy Services Company | PRODIGY: HFDD60A 445 Hamilton Avenue | Voice: +1 (914) 993-8855 White Plains, NY 10601 USA | Disclaimer: Not an official Prodigy spokesman
Technical Details
Message-ID:
<28ins7$fvv@tinman.dev.prodigy.com>Path:
arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!math.ohio-state.edu!cs.utexas.edu!uunet!newsgate.watson.ibm.com!hawnews.watson.ibm.com!acheron!philabs!tinman.dev.prodigy.com!tinman.dev.prodigy.com!bobReferences:
<28efue$478@access.digex.net>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cd94,b690185ddc355787 X-Google-Attributes: gid10cd94,public X-Google-Thread: 11307a,b690185ddc355787 X-Google-Attributes: gid11307a,public X-Google-ArrivalTime: 1993-10-01 22:58:11 PST Path: arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!math.ohio-state.edu!cs.utexas.edu!uunet!newsgate.watson.ibm.com!hawnews.watson.ibm.com!acheron!philabs!tinman.dev.prodigy.com!tinman.dev.prodigy.com!bob From: bob@tinman.dev.prodigy.com (Bob Dedrick) Newsgroups: comp.os.os2.programmer.misc,bit.listserv.os2-l Subject: Re: Thread-specific variables? Date: 2 Oct 1993 02:09:11 GMT Organization: Prodigy Services Company, White Plains, New York Lines: 16 Message-ID: <28ins7$fvv@tinman.dev.prodigy.com> References: <28efue$478@access.digex.net> NNTP-Posting-Host: loopback.dev.prodigy.com