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

@@ -74,6 +74,14 @@ namespace sta
*/
RtosThread(const Handle & handle);
/**
* @brief Sets the thread to BLOCKED for a given number of ticks.
* Other threads can run in the meantime.
*
* @param ticks The number of ticks before setting the thread to READY again.
*/
void sleep(uint32_t ticks);
/**
* @brief Send user notification flags to thread.
*