Minor fixes to comments.
[AROS.git] / rom / intuition / lockpubscreenlist.c
blob4b836d47b32e9e4f7d7e5d71044f5c11a189c1f0
1 /*
2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
3 Copyright © 2001-2003, The MorphOS Development Team. All Rights Reserved.
4 $Id$
5 */
7 #include "intuition_intern.h"
9 /*****************************************************************************
11 NAME */
12 #include <proto/intuition.h>
14 AROS_LH0(struct List *, LockPubScreenList,
16 /* SYNOPSIS */
18 /* LOCATION */
19 struct IntuitionBase *, IntuitionBase, 87, Intuition)
21 /* FUNCTION
23 Arbitrates access to the system public screen list. This is for Public
24 Screen Manager programs only! The list should be locked for as short a
25 time as possible.
27 INPUTS
29 RESULT
31 NOTES
33 The list's nodes are PubScreenNodes as defined in <intuition/screens.h>.
35 EXAMPLE
37 BUGS
39 SEE ALSO
41 UnlockPubScreenList()
43 INTERNALS
45 *****************************************************************************/
47 AROS_LIBFUNC_INIT
49 DEBUG_LOCKPUBSCREENLIST(dprintf("LockPubScreenList: <%s>\n",
50 FindTask(NULL)->tc_Node.ln_Name));
51 ObtainSemaphore(&GetPrivIBase(IntuitionBase)->PubScrListLock);
52 DEBUG_LOCKPUBSCREENLIST(dprintf("LockPubScreenList: done\n"));
54 return (struct List *)&(GetPrivIBase(IntuitionBase)->PubScreenList);
56 AROS_LIBFUNC_EXIT
57 } /* LockPubScreenList */