2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
8 #include <aros/libcall.h>
9 #include <proto/exec.h>
12 #include <aros/debug.h>
15 /*****************************************************************************
18 #include <proto/layers.h>
19 #include "layers_intern.h"
21 AROS_LH1(void, UnlockLayer
,
24 AROS_LHA(struct Layer
*, layer
, A0
),
27 struct LayersBase
*, LayersBase
, 17, Layers
)
30 Unlocks a layer for access by other tasks. A layer has
31 to be unlocked as many times as it has been locked until
32 another task can access it.
35 layer - pointer to layer to be unlocked
50 27-11-96 digulla automatically created from
51 layers_lib.fd and clib/layers_protos.h
53 *****************************************************************************/
57 D(bug("UnlockLayer(layer @ $%lx)\n", layer
));
59 ReleaseSemaphore(&layer
->Lock
);