This repository has been archived on 2026-04-17. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
bhlib/src/Platform/Dummy/Semaphore.c

50 lines
662 B
C
Raw Normal View History

#include "Thread.h"
BH_Semaphore *BH_SemaphoreNew(int value)
{
BH_UNUSED(value);
return NULL;
}
void BH_SemaphoreFree(BH_Semaphore *semaphore)
{
BH_UNUSED(semaphore);
}
int BH_SemaphorePost(BH_Semaphore *semaphore)
{
BH_UNUSED(semaphore);
return BH_NOIMPL;
}
int BH_SemaphoreWait(BH_Semaphore *semaphore)
{
BH_UNUSED(semaphore);
return BH_NOIMPL;
}
int BH_SemaphoreWaitTry(BH_Semaphore *semaphore)
{
BH_UNUSED(semaphore);
return BH_NOIMPL;
}
int BH_SemaphoreWaitFor(BH_Semaphore *semaphore,
uint32_t timeout)
{
BH_UNUSED(semaphore);
BH_UNUSED(timeout);
return BH_NOIMPL;
}