2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
5 Desc: Graphics function AttemptLockLayerRom()
8 #include <proto/layers.h>
9 #include <graphics/clip.h>
10 #include <proto/exec.h>
11 #include <exec/types.h>
13 /*****************************************************************************
16 #include <proto/graphics.h>
18 AROS_LH1(BOOL
, AttemptLockLayerRom
,
21 AROS_LHA(struct Layer
*, l
, A5
),
24 struct GfxBase
*, GfxBase
, 109, Graphics
)
27 Try to lock the current layer. If it is already locked this
28 function will return FALSE, TRUE otherwise.
29 If the layer could be locked successfully nesting will take place
30 which means that for every successful locking of a layer
31 UnlockLayerRom() has to be called for that layer to let other
32 tasks access that layer.
38 TRUE - layer is successfully locked for the task
39 FALSE - layer could not be locked, it's locked by another task.
48 LockLayerRom(), UnlockLayerRom()
54 *****************************************************************************/
58 return AttemptSemaphore(&l
->Lock
);
61 } /* AttemptLockLayerRom */