mirror of
https://github.com/meshtastic/firmware.git
synced 2025-02-04 11:49:58 +00:00
17a1262382
for dumb reasons)
17 lines
221 B
C++
17 lines
221 B
C++
#include "configuration.h"
|
|
#include "LockGuard.h"
|
|
|
|
namespace concurrency {
|
|
|
|
LockGuard::LockGuard(Lock *lock) : lock(lock)
|
|
{
|
|
lock->lock();
|
|
}
|
|
|
|
LockGuard::~LockGuard()
|
|
{
|
|
lock->unlock();
|
|
}
|
|
|
|
} // namespace concurrency
|