Article View: comp.os.os2.programmer.misc
Article #207Re: _beginthread() data ptr question
From: Keith Bennett
Date: Tue, 30 Aug 1994 19:53
Date: Tue, 30 Aug 1994 19:53
30 lines
1850 bytes
1850 bytes
In article <33tolb$2qq@crl2.crl.com>, Hawley K Rising <rising@crl.com> wrote: >I haven't tried it so I may have this all wrong, but Dorfman and >Neuberger (Effective Multithreading in OS/2) list a function called >_threadstore() which is to be used in conjunction with _beginthread and >_endthread for "per thread data area". the prototype is > >#include <process.h> >void **_threadstore(void); > >They are using the CSet++ compiler. > >Hope this helps, > >Hawley Rising >rising@crl.com > I believe _threadstore() returns the value that was passed as the 4th parameter to _beginthread(), and can be changed to any value you want it to be. It could be very useful when creating several threads using the same thread function. - Keith -- -------------------------------------------------------------------------- Keith Bennett Bennett Business Solutions, Inc. C++/C Software Development 1852 Middlebridge Drive kbennett@cpcug.org Silver Spring, MD USA 20906
Technical Details
Message-ID:
<3402ne$nq1@cpcug.org>Path:
arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!redstone.interpath.net!ddsw1!panix!MathWorks.Com!solaris.cc.vt.edu!uunet!news1.digex.net!digex.net!not-for-mailReferences:
<33tkbt$ssr@cpcug.org> <33tolb$2qq@crl2.crl.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11307a,ce25cc05cfc65cdb X-Google-Attributes: gid11307a,public X-Google-Thread: 10cd94,ce25cc05cfc65cdb X-Google-Attributes: gid10cd94,public X-Google-ArrivalTime: 1994-08-30 13:17:30 PST Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!redstone.interpath.net!ddsw1!panix!MathWorks.Com!solaris.cc.vt.edu!uunet!news1.digex.net!digex.net!not-for-mail From: kbennett@cpcug.org (Keith Bennett) Newsgroups: comp.os.os2.programmer.misc,bit.listserv.os2-l Subject: Re: _beginthread() data ptr question Date: 30 Aug 1994 15:53:18 -0400 Organization: Express Access Online Communications, Greenbelt, MD USA Lines: 30 Message-ID: <3402ne$nq1@cpcug.org> References: <33tkbt$ssr@cpcug.org> <33tolb$2qq@crl2.crl.com> NNTP-Posting-Host: cpcug.org