|
ZeroErr
|


类 | |
| class | zeroerr::detail::Mutex |
| class | zeroerr::detail::LockGuard |
命名空间 | |
| namespace | zeroerr |
| namespace | zeroerr::detail |
宏定义 | |
| #define | _LIBCPP_REMOVE_TRANSITIVE_INCLUDES |
| #define | ZEROERR_MUTEX(x) static zeroerr::detail::Mutex x; |
| Thread safety support This header provides thread-safe support for zeroerr. | |
| #define | ZEROERR_LOCK(x) zeroerr::detail::LockGuard lock(x); |
| #define | ZEROERR_ATOMIC(x) std::atomic<x> |
| #define | ZEROERR_LOAD(x) x.load() |
| #define _LIBCPP_REMOVE_TRANSITIVE_INCLUDES |
| #define ZEROERR_ATOMIC | ( | x | ) | std::atomic<x> |
| #define ZEROERR_LOAD | ( | x | ) | x.load() |
| #define ZEROERR_LOCK | ( | x | ) | zeroerr::detail::LockGuard lock(x); |
| #define ZEROERR_MUTEX | ( | x | ) | static zeroerr::detail::Mutex x; |
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.