Files
spark/src/lib/core/LockGuard.h
T
John Colvin c2419b491a fix: Ensure ccapi log filenames aren't deallocated
Logs are committed asynchronously, and since ccapi log filenames are
passed by value, we must store them somewhere
2023-06-21 11:07:45 -04:00

5 lines
171 B
C++

#pragma once
#define LOCK_GUARD(lockable) \
std::lock_guard<decltype(lockable)> __lock_guard_##lockable { lockable }