mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/sta-core.git
synced 2025-08-06 18:37:34 +00:00
RAII-style mutex
This commit is contained in:
@@ -3,6 +3,16 @@
|
||||
|
||||
namespace sta
|
||||
{
|
||||
void Mutex::lock()
|
||||
{
|
||||
acquire();
|
||||
}
|
||||
|
||||
void Mutex::unlock()
|
||||
{
|
||||
release();
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Dummy mutex implementation with no access control.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user