ZeroErr
载入中...
搜索中...
未找到
threadsafe.h 文件参考
#include "zeroerr/internal/config.h"
#include <atomic>
threadsafe.h 的引用(Include)关系图:
此图展示该文件被哪些文件直接或间接地引用了:

浏览该文件的源代码.

类

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

命名空间

namespace  zeroerr
namespace  zeroerr::detail

宏定义

#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)

宏定义说明

◆ _LIBCPP_REMOVE_TRANSITIVE_INCLUDES

#define _LIBCPP_REMOVE_TRANSITIVE_INCLUDES

◆ ZEROERR_ATOMIC

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

◆ ZEROERR_LOAD

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

◆ ZEROERR_LOCK

#define ZEROERR_LOCK ( x)
值:

◆ ZEROERR_MUTEX

#define ZEROERR_MUTEX ( x)
值:
定义 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.