Check for SYS/GL during library init. Reason is that
[AROS.git] / workbench / libs / realtime / unlockrealtime.c
blob1685fa0e43e97142bf9c4f1d27ad6ffa1c8a3d4c
1 /*
2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc:
6 Lang: English
7 */
9 #include <proto/exec.h>
10 #include "realtime_intern.h"
12 /*****************************************************************************
14 NAME */
15 #include <libraries/realtime.h>
17 AROS_LH1(VOID, UnlockRealTime,
19 /* SYNOPSIS */
21 AROS_LHA(APTR, lockHandle, A0),
23 /* LOCATION */
25 struct Library *, RealTimeBase, 6, RealTime)
27 /* FUNCTION
29 Unlock a RealTime.library internal semaphore.
31 INPUTS
33 lockHandle -- Handle returned by LockRealTime(); may be NULL.
35 RESULT
37 NOTES
39 EXAMPLE
41 BUGS
43 SEE ALSO
45 LockRealTime()
47 INTERNALS
49 HISTORY
51 26.7.99 SDuvan implemented
53 ******************************************************************************/
56 AROS_LIBFUNC_INIT
58 if (lockHandle == NULL)
60 return;
63 ReleaseSemaphore((struct SignalSemaphore *)lockHandle);
65 AROS_LIBFUNC_EXIT
66 } /* UnlockRealTime */