
typedef int32_t iLMutex;

struct iLCondition
{
  int32_t          waiters;
  uint32_t         signaled;
};

struct iLSemaphore
{
  uint32_t         count;
  uint32_t         maxCount;
  uint32_t         waitCount;
  iLMutex          mutex;
  iLCondition      cond;
};

