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