2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
3 Copyright © 2001-2003, The MorphOS Development Team. All Rights Reserved.
7 #include "intuition_intern.h"
9 /*****************************************************************************
12 #include <proto/intuition.h>
14 AROS_LH0(struct List
*, LockPubScreenList
,
19 struct IntuitionBase
*, IntuitionBase
, 87, Intuition
)
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
33 The list's nodes are PubScreenNodes as defined in <intuition/screens.h>.
45 *****************************************************************************/
46 #define GPB(x) GetPrivIBase(x)
51 DEBUG_LOCKPUBSCREENLIST(dprintf("LockPubScreenList: <%s>\n",
52 FindTask(NULL
)->tc_Node
.ln_Name
));
53 ObtainSemaphore(&GPB(IntuitionBase
)->PubScrListLock
);
54 DEBUG_LOCKPUBSCREENLIST(dprintf("LockPubScreenList: done\n"));
56 return (struct List
*)&(GPB(IntuitionBase
)->PubScreenList
);
59 } /* LockPubScreenList */