userver: rcu::DefaultRcuTraits Struct Reference
Loading...
Searching...
No Matches
rcu::DefaultRcuTraits Struct Reference

#include <userver/rcu/rcu.hpp>

Detailed Description

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.

+ Inheritance diagram for rcu::DefaultRcuTraits:

Public Types

using MutexType = engine::Mutex
 
using DeleterType = AsyncDeleter
 

Member Typedef Documentation

◆ DeleterType

DeleterType is used to delete retired objects. It should:

  1. should contain void Delete(SnapshotHandle<T>) noexcept;
  2. 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: