Updated id handling for mutex and signal, sleep() for thread.

This commit is contained in:
dario
2024-01-02 00:56:22 +01:00
parent 3ceb481658
commit 08fec8e3e9
6 changed files with 41 additions and 12 deletions

View File

@@ -23,13 +23,20 @@ namespace sta
/**
* @param handle CMSIS RTOS2 mutex
*/
RtosMutex(osMutexId_t * handle);
RtosMutex(osMutexId_t handle);
/**
* @brief Construct a new Rtos Mutex object
*
* @param name The name of the mutex.
*/
RtosMutex(const char* name);
void acquire() override;
void release() override;
private:
osMutexId_t * handle_; /**< CMSIS RTOS2 mutex */
osMutexId_t handle_; /**< CMSIS RTOS2 mutex */
};
} // namespace sta