/*
    Copyright (C) 1995-2001, The AROS Development Team. All rights reserved.

    Desc:
*/

#include <proto/exec.h>
#include "realtime_intern.h"

/*****************************************************************************

    NAME */
#include <libraries/realtime.h>

    AROS_LH1(VOID, UnlockRealTime,

/*  SYNOPSIS */

        AROS_LHA(APTR, lockHandle, A0),

/*  LOCATION */

        struct Library *, RealTimeBase, 6, RealTime)

/*  FUNCTION

    Unlock a RealTime.library internal semaphore.

    INPUTS

    lockHandle  --  Handle returned by LockRealTime(); may be NULL.

    RESULT

    NOTES

    EXAMPLE

    BUGS

    SEE ALSO

    LockRealTime()

    INTERNALS

    HISTORY

    26.7.99  SDuvan implemented

******************************************************************************/

{
    AROS_LIBFUNC_INIT

    if (lockHandle == NULL)
    {
        return;
    }

    ReleaseSemaphore((struct SignalSemaphore *)lockHandle);

    AROS_LIBFUNC_EXIT
} /* UnlockRealTime */
