home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / os2 / programm / 7310 < prev    next >
Encoding:
Text File  |  1993-01-04  |  1.3 KB  |  34 lines

  1. Newsgroups: comp.os.os2.programmer
  2. Path: sparky!uunet!munnari.oz.au!comp.vuw.ac.nz!actrix!Dennis.Ingram
  3. From: Dennis.Ingram@bbs.actrix.gen.nz
  4. Subject: Re: Dialogs + Threads = Problems. Help!
  5. Organization: Actrix Information Exchange
  6. Date: Mon, 4 Jan 1993 20:58:11 GMT
  7. Message-ID: <1993Jan4.205811.107@actrix.gen.nz>
  8. References: <92366.110046U37127@uicvm.uic.edu> <1993Jan3.054918.1861@netcom.com>
  9. Sender: Dennis.Ingram@actrix.gen.nz (Dennis Ingram)
  10. Lines: 22
  11.  
  12.  
  13. > The notes in the PM Reference make it quite clear that WinSendMsg to a
  14. > window belonging to another thread IS allowed.  The message is sent 
  15. > synchronously and the thread switching is automatic.
  16. > I've done it myself for years.
  17. > -- 
  18. > Dave Briccetti, Owner, Dave Briccetti & Associates
  19. > OS/2 Developer/Consultant
  20. > P.O. Box 1713
  21. > Lafayette, CA  94549-7013
  22.  
  23. As I understand it, in order for a thread to use WinSendMsg it must
  24. have a message queue.  I have always wondered what is the best thing
  25. to do when you have multiple threads that need to access a window - do
  26. you use WinPostMsg and block using semaphores, or define a queue and
  27. use WinSendMsg?  What is the overhead of defining a message queue (in
  28. terms of system resources), bearing in mind that the queue is only
  29. there to allow WinSendMsg access?
  30.  
  31.