|
cds
2.3.3
|
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. | |
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.