home *** CD-ROM | disk | FTP | other *** search
- Path: 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
-
- 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
- ------------------------------------------------------------------------
-