home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cbmvax!cbmehq!cbmfra!forgeas
- From: forgeas@swinjm.adsp.sub.org (Jean-Michel Forgeas)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Screen lists & locking
- Message-ID: <dUH8s*N82@swinjm.adsp.sub.org>
- Date: 16 Dec 92 09:55:25 GMT
- References: <ByywFv.Mzx@fc.hp.com> <37878@cbmvax.commodore.com>
- Reply-To: forgeas@swinjm.adsp.sub.org (Jean-Michel Forgeas)
- Organization: The Software Winery
- Lines: 23
- X-Newsreader: Arn V1.00 alpha rel2
-
- In article <37878@cbmvax.commodore.com>, Peter Cherna writes:
-
- > list = LockPubScreenList();
- >
- > /* Now find the node */
- > strcpy( mybuffer, node->ln_Name );
- >
- > UnlockPubScreenList();
- >
- > /* This happens outside LockPubScreenList(). Also, there
- > * is no need to LockPubScreen() first.
- > */
- > SetDefaultPubScreen(node->ln_Name);
-
- In the example above, can the screen (called node->ln_Name) be closed
- just after UnlockPubScreenList() and just before SetDefaultPubScreen(),
- so that SetDefaultPubScreen(node->ln_Name) could fail?
-
- Jean-Michel
- --
- Jean-Michel Forgeas uunet!cbmvax!cbmehq!cbmfra!swinjm!forgeas
- 16170 Bordeville __
- France \/
-