amiga-tz/library/time_lock.c

18 lines
277 B
C

#include "time_header.h"
struct SignalSemaphore* TimeSemaphore = NULL;
int lock(void)
{
if (TimeSemaphore != NULL)
ObtainSemaphore(TimeSemaphore);
return 0;
}
void unlock(void)
{
if (TimeSemaphore != NULL)
ReleaseSemaphore(TimeSemaphore);
}