Loading...
Searching...
No Matches
Go to the documentation of this file.
11#ifdef ZEROERR_NO_THREAD_SAFE
13#define ZEROERR_MUTEX(x)
14#define ZEROERR_LOCK(x)
15#define ZEROERR_ATOMIC(x) x
16#define ZEROERR_LOAD(x) x
20#define ZEROERR_MUTEX(x) static std::mutex x;
21#define ZEROERR_LOCK(x) std::lock_guard<std::mutex> lock(x);
22#define ZEROERR_ATOMIC(x) std::atomic<x>
23#define ZEROERR_LOAD(x) x.load()