|
cds
2.3.3
|
Wait strategy based on the single mutex and the condition variable. More...
#include <cds/algo/flat_combining/wait_strategy.h>
Data Structures | |
| struct | make_publication_record |
| Empty metafunction. More... | |
Public Types | |
| enum | |
Public Member Functions | |
| single_mutex_single_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 &fc, PublicationRecord &) |
Calls condition variable function notify_all() | |
| template<typename FCKernel > | |
| void | wakeup (FCKernel &) |
Calls condition variable function notify_all() | |
Wait strategy based on the single mutex and the condition variable.
The strategy shares the mutex and conditional variable for all thread.
Template parameter Milliseconds specifies waiting duration; the minimal value is 1.