2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
9 #include <proto/exec.h>
10 #include "realtime_intern.h"
12 /*****************************************************************************
15 #include <libraries/realtime.h>
17 AROS_LH1(APTR
, LockRealTime
,
21 AROS_LHA(ULONG
, lockType
, D0
),
25 struct Library
*, RealTimeBase
, 5, RealTime
)
29 Lock a RealTime.library internal semaphore.
33 lockType -- The type of lock to aquire, see <libraries/realtime.h> for
38 A handle to pass to UnlockRealTime() to unlock the semaphore. If 'lockType'
39 is invalid, NULL is returned.
55 26.7.99 SDuvan implemented
57 ******************************************************************************/
62 if(lockType
>= RT_MAXLOCK
)
65 ObtainSemaphore(&GPB(RealTimeBase
)->rtb_Locks
[lockType
]);
67 return (APTR
)(&GPB(RealTimeBase
)->rtb_Locks
[lockType
]);