Newer
Older
invertedlogic / InvertedLogic / iLPlatform / iLSemaphore.def
@John Ryland John Ryland on 10 Nov 2019 270 bytes rename

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;
};