mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/rtos2-utils.git
synced 2025-08-06 11:07:34 +00:00
Updated id handling for mutex and signal, sleep() for thread.
This commit is contained in:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user