Standard library header <rcu> (C++26)

From cppreference.com

This header is part of the

thread support

library.

Classes

rcu_obj_base

(C++26)

allows an object to be protected by RCU
(class template)

[edit]

rcu_domain

(C++26)

provides regions of RCU protection
(class)

[edit]

Functions

rcu_default_domain

(C++26)

returns a reference to a static-duration object of type std::rcu_domain
(function)

[edit]

rcu_synchronize

(C++26)

blocks until a protection region unlocks on a RCU domain
(function)

[edit]

rcu_barrier

(C++26)

may evaluate scheduled operations on a RCU domain and blocks until all preceding evaluations are complete
(function)

[edit]

rcu_retire

(C++26)

schedules the evaluation of a specified function on a RCU domain, potentially allocating memory, and invoking scheduled evaluations
(function template)

[edit]

Synopsis

namespacestd{template<classT,classD=default_delete<T>>classrcu_obj_base;classrcu_domain;rcu_domain&rcu_default_domain()noexcept;voidrcu_synchronize(rcu_domain&dom=rcu_default_domain())noexcept;voidrcu_barrier(rcu_domain&dom=rcu_default_domain())noexcept;template<classT,classD=default_delete<T>>voidrcu_retire(T*p,Dd=D(),rcu_domain&dom=rcu_default_domain());}Class template std::rcu_obj_base

namespacestd{template<classT,classD=default_delete<T>>classrcu_obj_base{public:voidretire(Dd=D(),rcu_domain&dom=rcu_default_domain())noexcept;protected:rcu_obj_base()=default;rcu_obj_base(constrcu_obj_base&)=default;rcu_obj_base(rcu_obj_base&&)=default;rcu_obj_base&operator=(constrcu_obj_base&)=default;rcu_obj_base&operator=(rcu_obj_base&&)=default;~rcu_obj_base()=default;private:Ddeleter;// exposition only};}Class std::rcu_domain

namespacestd{classrcu_domain{public:rcu_domain(constrcu_domain&)=delete;rcu_domain&operator=(constrcu_domain&)=delete;voidlock()noexcept;booltry_lock()noexcept;voidunlock()noexcept;};}