2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
5 Desc: Graphics function LockLayerRom()
8 #include <proto/layers.h>
9 #include <proto/exec.h>
10 #include <graphics/clip.h>
12 /*****************************************************************************
15 #include <proto/graphics.h>
17 AROS_LH1(void, LockLayerRom
,
20 AROS_LHA(struct Layer
*, l
, A5
),
23 struct GfxBase
*, GfxBase
, 72, Graphics
)
26 Locks the layer. Returns when the layer is locked for
28 This call behaves like when a semaphore is locked. The
29 same task may lock the same layer several times without
30 locking itself out. For every call to this function a
31 call to UnlockLayerRom() has to be made as the calls nest.
32 This function will also prevent intuition from locking the
33 layer so the layer should not be blocked too long.
34 This function does exactly the same as layers/LockLayer()
37 l - pointer to layer that is to be locked
46 Does not save all registers.
49 UnlockLayerRom(), hyperlayers.library/LockLayer()
50 hyperlayers.library/UnLockLayer()
56 *****************************************************************************/
60 ObtainSemaphore(&l
->Lock
);