Article View: borland.public.cppbuilder.nativeapi
Article #14948Re: GetCurrentProcessId(),GetCurrentThreadId() ?
From: Remy Lebeau (TeamB)
Date: Mon, 28 Jul 2003 17:46
Date: Mon, 28 Jul 2003 17:46
16 lines
1635 bytes
1635 bytes
"CC" <Xcurtc@tmscorp.com> wrote in message news:3f215d5e@newsgroups.borland.com... > The problem is I'm getting the same process and > thread ID for all messages for both threads (process > id expected the same, i expected to get thread id different). The only way that is possible is if only one thread is actually calling the function in question. GetCurrentThreadId() is guaranteed to return the proper ID of the calling thread, so if you are only seeing a single thread ID ever getting logged, then that is the only thread ever actually calling your function in the first place. Gambit
Technical Details
Message-ID:
<3f256003$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<3f215d5e@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,7d819d0bb118e239 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-07-28 10:59:00 PST From: "Remy Lebeau \(TeamB\)" <gambit47@yahoo.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <3f215d5e@newsgroups.borland.com> Subject: Re: GetCurrentProcessId(),GetCurrentThreadId() ? Date: Mon, 28 Jul 2003 10:46:05 -0700 Lines: 18 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 NNTP-Posting-Host: 207.175.226.26 Message-ID: <3f256003$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1059414019 207.175.226.26 (28 Jul 2003 10:40:19 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail