mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/sta-core.git
synced 2025-06-12 01:25:59 +00:00
21 lines
318 B
C++
21 lines
318 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 release() override {}
|
|
};
|
|
|
|
static DummyMutex dummyMutex;
|
|
|
|
|
|
Mutex * Mutex::ALWAYS_FREE = &dummyMutex;
|
|
} // namespace sta
|