2020-10-11 01:18:47 +00:00
|
|
|
#include "configuration.h"
|
2021-06-27 17:56:28 +00:00
|
|
|
#include "concurrency/BinarySemaphorePosix.h"
|
2020-10-11 01:18:47 +00:00
|
|
|
|
|
|
|
#ifndef HAS_FREE_RTOS
|
|
|
|
|
|
|
|
namespace concurrency
|
|
|
|
{
|
|
|
|
|
|
|
|
BinarySemaphorePosix::BinarySemaphorePosix()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
BinarySemaphorePosix::~BinarySemaphorePosix()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns false if we timed out
|
|
|
|
*/
|
|
|
|
bool BinarySemaphorePosix::take(uint32_t msec)
|
|
|
|
{
|
|
|
|
delay(msec); // FIXME
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
void BinarySemaphorePosix::give()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
IRAM_ATTR void BinarySemaphorePosix::giveFromISR(BaseType_t *pxHigherPriorityTaskWoken)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
} // namespace concurrency
|
|
|
|
|
|
|
|
#endif
|