Check for SYS/GL during library init. Reason is that
[AROS.git] / workbench / libs / camd / lockcamd.c
blob46441b3cb45a9c2fc265dc819bbf43c37cd93ada
1 /*
2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc:
6 Lang: English
7 */
9 #include <proto/exec.h>
11 #include "camd_intern.h"
13 /*****************************************************************************
15 NAME */
17 AROS_LH1(APTR, LockCAMD,
19 /* SYNOPSIS */
20 AROS_LHA(ULONG, locktype, D0),
22 /* LOCATION */
23 struct CamdBase *, CamdBase, 5, Camd)
25 /* FUNCTION
26 Locks the internal lists in camd.
27 You must call UnlockCAMD later.
29 INPUTS
30 locktype - Only CD_Linkages is legal.
32 RESULT
33 APTR to send to UnlockCAMD
35 NOTES
37 EXAMPLE
39 BUGS
41 SEE ALSO
43 INTERNALS
45 HISTORY
47 2001-01-12 ksvalast first created
49 *****************************************************************************/
51 AROS_LIBFUNC_INIT
53 ObtainSemaphoreShared(CB(CamdBase)->CLSemaphore);
54 return CB(CamdBase)->CLSemaphore;
56 AROS_LIBFUNC_EXIT