#include <userver/rcu/rcu.hpp>
Default RCU traits. Deletes garbage asynchronously. Designed for storing data of multi-megabyte or multi-gigabyte caches.
- Note
- Allows reads from any kind of thread. Only allows writes from coroutine threads.
- See also
- rcu::Variable
-
rcu::SyncRcuTraits
-
rcu::BlockingRcuTraits
Definition at line 169 of file rcu.hpp.
◆ DeleterType
DeleterType
is used to delete retired objects. It should:
- should contain
void Delete(SnapshotHandle<T>) noexcept
;
- force synchronous cleanup of remaining handles on destruction.
Definition at line 177 of file rcu.hpp.
◆ MutexType
MutexType
is a writer's mutex type that has to be used to protect structure on update.
Definition at line 172 of file rcu.hpp.
The documentation for this struct was generated from the following file: