Article View: borland.public.cppbuilder.nativeapi
Article #14699Re: Threads and CPU Usage
From: Eugene Mayevski
Date: Sun, 03 Aug 2003 16:23
Date: Sun, 03 Aug 2003 16:23
22 lines
1686 bytes
1686 bytes
Joe Walker wrote:
> while (GetMessage(&msg, NULL, 0,0,PM_REMOVE))
> Dispatch(&msg)
while (GetMessage(&msg, (DWORD) -1, 0,0))
Dispatch(&msg)
This will get only thread message queue messages, not messages for the
windows that "live" within that thread. Alternatively
while (GetMessage(&msg, 0, 0,0))
Dispatch(&msg)
to get messages for the thread and for all windows, created and active
within that thread.
--
Eugene Mayevski
Flexible cross-platform information exchange framework
http://www.msgconnect.com/
Technical Details
Message-ID:
<3f2d37e3@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsswitch.lcs.mit.edu!newsfeed.cwix.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3f2cfdce$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,90beddda6c283d0e X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-08-03 09:39:46 PST Date: Sun, 03 Aug 2003 19:23:29 +0300 From: Eugene Mayevski <mayevski@eldos.org> Reply-To: mayevski@eldos.org User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 X-Accept-Language: en-us, uk, en, ru MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Threads and CPU Usage References: <3f2cfdce$1@newsgroups.borland.com> In-Reply-To: <3f2cfdce$1@newsgroups.borland.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 212.9.249.107 Message-ID: <3f2d37e3@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1059928035 212.9.249.107 (3 Aug 2003 09:27:15 -0700) Lines: 23 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsswitch.lcs.mit.edu!newsfeed.cwix.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail