ZeroErr
Loading...
Searching...
No Matches
threadsafe.h File Reference
#include "zeroerr/internal/config.h"
#include <atomic>
Include dependency graph for threadsafe.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  zeroerr::detail::Mutex
class  zeroerr::detail::LockGuard

Namespaces

namespace  zeroerr
namespace  zeroerr::detail

Macros

#define _LIBCPP_REMOVE_TRANSITIVE_INCLUDES
#define ZEROERR_MUTEX(x)
 Thread safety support This header provides thread-safe support for zeroerr.
#define ZEROERR_LOCK(x)
#define ZEROERR_ATOMIC(x)
#define ZEROERR_LOAD(x)

Macro Definition Documentation

◆ _LIBCPP_REMOVE_TRANSITIVE_INCLUDES

#define _LIBCPP_REMOVE_TRANSITIVE_INCLUDES

◆ ZEROERR_ATOMIC

#define ZEROERR_ATOMIC ( x)
Value:
std::atomic<x>

◆ ZEROERR_LOAD

#define ZEROERR_LOAD ( x)
Value:
x.load()

◆ ZEROERR_LOCK

#define ZEROERR_LOCK ( x)
Value:
Definition threadsafe.h:44

◆ ZEROERR_MUTEX

#define ZEROERR_MUTEX ( x)
Value:
Definition threadsafe.h:36

Thread safety support This header provides thread-safe support for zeroerr.

It defines macros for mutexes, locks, and atomic operations. The macros are conditionally defined based on the ZEROERR_NO_THREAD_SAFE flag.