Async++ unknown
Async (co_await/co_return) code for C++
|
Threadsafe refcount policy. More...
#include <asyncpp/ref.h>
Public Member Functions | |
constexpr | thread_safe_refcount (size_t init_val=0) noexcept |
thread_safe_refcount (const thread_safe_refcount &other)=delete | |
thread_safe_refcount & | operator= (const thread_safe_refcount &other)=delete |
size_t | fetch_increment () noexcept |
size_t | fetch_decrement () noexcept |
size_t | count () const noexcept |
Public Attributes | |
std::atomic< size_t > | m_count |
Threadsafe refcount policy.