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