2 Copyright © 1995-2011, The AROS Development Team. All rights reserved.
9 #include "datatypes_intern.h"
10 #include <proto/exec.h>
11 #include <exec/alerts.h>
13 /*****************************************************************************
16 #include <proto/datatypes.h>
18 AROS_LH1(VOID
, ReleaseDataType
,
21 AROS_LHA(struct DataType
*, dt
, A0
),
24 struct Library
*, DataTypesBase
, 7, DataTypes
)
28 Release a DataType structure aquired by ObtainDataTypeA().
32 dt -- DataType structure as returned by ObtainDataTypeA(); NULL is
51 *****************************************************************************/
55 ObtainSemaphoreShared(&(GPB(DataTypesBase
)->dtb_DTList
)->dtl_Lock
);
59 if(((struct CompoundDataType
*)dt
)->OpenCount
)
60 ((struct CompoundDataType
*)dt
)->OpenCount
--;
65 ReleaseSemaphore(&(GPB(DataTypesBase
)->dtb_DTList
)->dtl_Lock
);
68 } /* ReleaseDataType */