Add new files for version 1.0.1332

This commit is contained in:
Dmitry
2025-11-14 17:35:21 -05:00
parent af5732e71b
commit 395f1a9be7
16 changed files with 1035 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
#pragma once
#include "../freertosinc.h"
namespace concurrency
{
#ifndef HAS_FREE_RTOS
class BinarySemaphorePosix
{
// SemaphoreHandle_t semaphore;
public:
BinarySemaphorePosix();
~BinarySemaphorePosix();
/**
* Returns false if we timed out
*/
bool take(uint32_t msec);
void give();
void giveFromISR(BaseType_t *pxHigherPriorityTaskWoken);
};
#endif
} // namespace concurrency