carb/cpp20/Semaphore.h¶
↰ Parent directory: carb/cpp20/
Implementation of the C++20 std::counting_semaphore class.
Source: carb/cpp20/Semaphore.h
Detailed Description¶
Semaphore implementation. C++14-compatible implementation of std::counting_semaphore from C++20 draft spec dated 11/13/2019. Designed so that we can switch to std::counting_semaphore when it becomes available
Namespaces¶
carb: The main Carbonite namespace.
carb::cpp20: Namespace for backports of C++20 features.
Classes¶
carb::cpp20::counting_semaphore: Counted semaphore wrapper class.
Typedefs¶
carb::cpp20::binary_semaphore: Alias for a counting semaphore that can only be acquired by one caller at a time.