home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / amiga / programm / 17581 < prev    next >
Encoding:
Internet Message Format  |  1992-12-21  |  1.2 KB

  1. Path: sparky!uunet!cbmvax!cbmehq!cbmfra!forgeas
  2. From: forgeas@swinjm.adsp.sub.org (Jean-Michel Forgeas)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Screen lists & locking
  5. Message-ID: <dUH8s*N82@swinjm.adsp.sub.org>
  6. Date: 16 Dec 92 09:55:25 GMT
  7. References: <ByywFv.Mzx@fc.hp.com> <37878@cbmvax.commodore.com>
  8. Reply-To: forgeas@swinjm.adsp.sub.org (Jean-Michel Forgeas)
  9. Organization: The Software Winery
  10. Lines: 23
  11. X-Newsreader: Arn V1.00 alpha rel2
  12.  
  13. In article <37878@cbmvax.commodore.com>, Peter Cherna writes:
  14.  
  15. >       list = LockPubScreenList();
  16. >
  17. >       /* Now find the node */
  18. >       strcpy( mybuffer, node->ln_Name );
  19. >
  20. >       UnlockPubScreenList();
  21. >
  22. >       /* This happens outside LockPubScreenList().  Also, there
  23. >        * is no need to LockPubScreen() first.
  24. >        */
  25. >       SetDefaultPubScreen(node->ln_Name);
  26.  
  27. In the example above, can the screen (called node->ln_Name) be closed
  28. just after UnlockPubScreenList() and just before SetDefaultPubScreen(),
  29. so that SetDefaultPubScreen(node->ln_Name) could fail?
  30.  
  31.     Jean-Michel
  32. --
  33.  Jean-Michel Forgeas      uunet!cbmvax!cbmehq!cbmfra!swinjm!forgeas
  34.  16170 Bordeville                            __
  35.  France                                      \/
  36.