mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/sta-core.git
synced 2025-06-10 16:55:58 +00:00
22 lines
408 B
C++
22 lines
408 B
C++
#include <sta/mutex.hpp>
|
|
|
|
|
|
namespace sta
|
|
{
|
|
/**
|
|
* @brief Dummy mutex implementation with no access control.
|
|
*/
|
|
class DummyMutex : public Mutex
|
|
{
|
|
public:
|
|
void acquire() override {}
|
|
void acquire(uint32_t timeout) override {}
|
|
void release() override {}
|
|
};
|
|
|
|
static DummyMutex dummyMutex;
|
|
|
|
|
|
Mutex * Mutex::ALWAYS_FREE = &dummyMutex;
|
|
} // namespace sta
|