firmware/src/concurrency/BinarySemaphorePosix.cpp

28 lines
522 B
C++
Raw Normal View History

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