Article View: borland.public.cppbuilder.nativeapi
Article #2746Message queue size
From: Tumurbaatar S.
Date: Mon, 20 Nov 2006 19:48
Date: Mon, 20 Nov 2006 19:48
14 lines
1237 bytes
1237 bytes
In my multi-threaded app, I use below code to create a message queue for a
thread:
PeekMessage(&msg, NULL, WM_USER, WM_USER, PM_NOREMOVE);
Other threads sends message to this thread:
PostThreadMessage(...);
And my question:
What is size of a message queue? Is there a chance to lost messages due
to
the queue's overflow?
Technical Details
Message-ID:
<45620661$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,c881222086e38d58,start X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Tumurbaatar S." <spam_tumur@magicnet.mn> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Message queue size Date: Tue, 21 Nov 2006 03:48:11 +0800 Lines: 16 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2869 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2962 X-RFC2646: Format=Flowed; Original NNTP-Posting-Host: 202.170.80.19 Message-ID: <45620661$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1164052065 202.170.80.19 (20 Nov 2006 11:47:45 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail