Flatten directories

This commit is contained in:
Henrik Stickann
2023-01-19 23:14:39 +01:00
parent b7e24cd5a3
commit 2a5a816c57
7 changed files with 0 additions and 0 deletions

30
include/sta/mutex.hpp Normal file
View File

@@ -0,0 +1,30 @@
/**
* @brief Mutex interface definition.
*/
#ifndef STA_MUTEX_HPP
#define STA_MUTEX_HPP
namespace sta
{
/**
* @brief Interface for mutex objects.
*/
class Mutex
{
public:
/**
* @brief Block until mutex has been acquired.
*/
virtual void acquire() = 0;
/**
* @brief Release mutex.
*/
virtual void release() = 0;
static Mutex * ALWAYS_FREE; /**< Fake mutex that can always be acquired */
};
} // namespace sta
#endif // STA_MUTEX_HPP