home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / sys / amiga / programm / 17740 < prev    next >
Encoding:
Text File  |  1992-12-23  |  1.6 KB  |  47 lines

  1. Path: sparky!uunet!spool.mu.edu!yale.edu!ira.uka.de!rz.uni-karlsruhe.de!rz.uni-karlsruhe.de!ry41
  2. From: ry41@rz.uni-karlsruhe.de (Bernhard Moellemann)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: LockIBase
  5. Date: 23 Dec 1992 12:20:03 GMT
  6. Organization: University of Karlsruhe, Germany
  7. Lines: 31
  8. Distribution: comp
  9. Message-ID: <1h9lhjINNk0p@nz12.rz.uni-karlsruhe.de>
  10. References: <JTP.92Dec23025528@laphroaig.cs.hut.fi>
  11. NNTP-Posting-Host: tp72.rz.uni-karlsruhe.de
  12. MIME-Version: 1.0
  13. Content-Type: text/plain; charset=ISO-8859-1
  14. Content-Transfer-Encoding: 8bit
  15.  
  16. Keywords: 
  17.  
  18. In article <JTP.92Dec23025528@laphroaig.cs.hut.fi>, jtp@cs.hut.fi (Jukka Partanen) writes:
  19.  
  20. >    What's the correct locking protocol if one wants to find a
  21. >    particular screen, and then do something with it? The RKM
  22. >    states that one shouldn't call any high level calls while
  23. >    holding the IntuitionBase lock.
  24.  
  25. The _correct_ protocol is:
  26.  
  27.   if ( scr=LockPubScreen(name) ) {
  28.     DoStuff(scr);
  29.     UnLockPubScreen(NULL,scr);
  30.   }
  31.  
  32. If it is no public screen rethink your strategy. There is no safe way to
  33. play around with a screen that is not yours. So there is _no_ "correct
  34. locking protocol".
  35.  
  36. >    [...] Isn't there a better way to
  37. >    make sure that a particular screen (not necessarily a public
  38. >    screen) isn't closed while I'm referencing it?
  39.  
  40. Simply don't touch other peoples screens. Then all is easy and clean.
  41.  
  42. -- 
  43.  Bernhard M÷llemann   <spare  space>   Chairman of the Nessy-Fan-Club   //
  44.  internet=zza@rz.uni-karlsruhe.de <space> FIDO=2:241/7506.42  IRC=ZZA  //
  45.  nessynet=008  Lifenet=77:7700/11.42  greetings to my Marsupilami  \\ //
  46.  2000/500 Technical Reference Manual:  "A1000, the original Amiga"  \X/
  47.