cds  2.3.3
cds::algo::flat_combining::wait_strategy::single_mutex_multi_condvar< Milliseconds > Class Template Reference

Wait strategy based on the single mutex and thread-local condition variables. More...

#include <cds/algo/flat_combining/wait_strategy.h>

Data Structures

struct  make_publication_record
 Incorporates a condition variable into PublicationRecord. More...
 

Public Types

enum  
 

Public Member Functions

 single_mutex_multi_condvar ()
 Default ctor.
 
template<typename PublicationRecord >
void prepare (PublicationRecord &)
 Does nothing.
 
template<typename FCKernel , typename PublicationRecord >
bool wait (FCKernel &fc, PublicationRecord &rec)
 Sleeps on condition variable waiting for notification from combiner.
 
template<typename FCKernel , typename PublicationRecord >
void notify (FCKernel &, PublicationRecord &rec)
 Calls condition variable function notify_one()
 
template<typename FCKernel >
void wakeup (FCKernel &fc)
 Calls fc.wakeup_any() to wake up any pending thread.
 

Detailed Description

template<int Milliseconds = 2>
class cds::algo::flat_combining::wait_strategy::single_mutex_multi_condvar< Milliseconds >

Wait strategy based on the single mutex and thread-local condition variables.

The strategy shares the mutex, but each thread has its own conditional variable

Template parameter Milliseconds specifies waiting duration; the minimal value is 1.


The documentation for this class was generated from the following file:

cds 2.3.3 Developed by Maxim Khizhinsky aka khizmax and other contributors 2007 - 2017
Autogenerated Sun Apr 5 2026 09:49:52 by Doxygen 1.8.10