cds
2.3.2
|
User-space general-purpose RCU with deferred threaded reclamation (stripped version) More...
#include <cds/urcu/general_threaded.h>
Additional Inherited Members | |
Public Types inherited from cds::urcu::general_threaded<> | |
typedef cds::container::VyukovMPSCCycleQueue< epoch_retired_ptr > | buffer_type |
Buffer type. | |
typedef std::mutex | lock_type |
Lock type. | |
typedef cds::backoff::Default | back_off |
Back-off scheme. | |
typedef dispose_thread< cds::container::VyukovMPSCCycleQueue< epoch_retired_ptr > > | disposer_thread |
Disposer thread type. | |
typedef general_threaded_tag | rcu_tag |
Thread-side RCU part. | |
typedef base_class::thread_gc | thread_gc |
Access lock class. | |
typedef thread_gc::scoped_lock | scoped_lock |
Access lock class. | |
Public Member Functions inherited from cds::urcu::general_threaded<> | |
virtual void | retire_ptr (retired_ptr &p) override |
Retires p pointer. More... | |
void | batch_retire (ForwardIterator itFirst, ForwardIterator itLast) |
Retires the pointer chain [itFirst , itLast ) | |
void | batch_retire (Func e) |
Retires the pointer chain until Func returns nullptr retired pointer. | |
void | synchronize () |
Waits to finish a grace period and calls disposing thread. | |
size_t | capacity () const |
Returns the threshold of internal buffer. | |
Static Public Member Functions inherited from cds::urcu::general_threaded<> | |
static general_threaded * | instance () |
Returns singleton instance. | |
static bool | isUsed () |
Checks if the singleton is created and ready to use. | |
static void | Construct (size_t nBufferCapacity=256) |
Creates singleton object and starts reclamation thread. More... | |
static void | Destruct (bool bDetachAll=false) |
Destroys singleton object and terminates internal reclamation thread. | |
User-space general-purpose RCU with deferred threaded reclamation (stripped version)
This short version of general_threaded
is intended for stripping debug info. If you use general_threaded
with default template arguments you may use this stripped version. All functionality of both classes are identical.