mirror of
https://github.com/meshtastic/firmware.git
synced 2025-02-10 06:31:25 +00:00
18 lines
221 B
C++
18 lines
221 B
C++
#include "LockGuard.h"
|
|
#include "configuration.h"
|
|
|
|
namespace concurrency
|
|
{
|
|
|
|
LockGuard::LockGuard(Lock *lock) : lock(lock)
|
|
{
|
|
lock->lock();
|
|
}
|
|
|
|
LockGuard::~LockGuard()
|
|
{
|
|
lock->unlock();
|
|
}
|
|
|
|
} // namespace concurrency
|