🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.os2.programmer
Article #3272

Re: Dialogs + Threads = Problems. Help!

#3272
From: Larry Salomon Jr.
Date: Tue, 05 Jan 1993 13:30
22 lines
1412 bytes
In <1993Jan4.205811.107@actrix.gen.nz> Dennis.Ingram@bbs.actrix.gen.nz writes:

>As I understand it, in order for a thread to use WinSendMsg it must
>have a message queue.  I have always wondered what is the best thing
>to do when you have multiple threads that need to access a window - do
>you use WinPostMsg and block using semaphores, or define a queue and
>use WinSendMsg?  What is the overhead of defining a message queue (in
>terms of system resources), bearing in mind that the queue is only
>there to allow WinSendMsg access?

Depending on your machine, the call to WinCreateMsgQueue can take up to
1 second to complete.

See my post "Why WinCancelShutdown()" for the answer to what everyone has
been mailing me about.

Cheers,
Q
-- 
"If you choose not to decide, you  | "My other body is in the shop" - seen
 still have made a choice" - Rush  |  on a T-shirt
------------------------------------------------------------------------
Technical Details
Message-ID: <C0DuuC.2ry@panix.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!sdd.hp.com!swrinde!gatech!rutgers!cmcl2!panix!os2man
References: <92366.110046U37127@uicvm.uic.edu> <1993Jan3.054918.1861@netcom.com> <1993Jan4.205811.107@actrix.gen.nz>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!sdd.hp.com!swrinde!gatech!rutgers!cmcl2!panix!os2man
From: os2man@panix.com (Larry Salomon Jr.)
Newsgroups: comp.os.os2.programmer
Subject: Re: Dialogs + Threads = Problems. Help!
Message-ID: <C0DuuC.2ry@panix.com>
Date: 5 Jan 93 13:30:12 GMT
References: <92366.110046U37127@uicvm.uic.edu> <1993Jan3.054918.1861@netcom.com> <1993Jan4.205811.107@actrix.gen.nz>
Organization: PANIX Public Access Unix, NYC
Lines: 22