A helper class for the synchronizer. More...
#include <Synchronizer_Helper.h>
Public Member Functions | |
virtual void | initialize ()=0 |
virtual void | synchronize ()=0 |
virtual bool | has_to_synchronize ()=0 |
virtual void | reset_to_synchronize ()=0 |
virtual void | end_putNget (const std::string &word, const std::string &counts)=0 |
A helper class for the synchronizer.
Each helper object implements synchronization algorithms for maintaining the data structures in sync
The Synchronizer class depends on this interface to enable synchronization of a multi-machine LDA set-up
virtual void Synchronizer_Helper::end_putNget | ( | const std::string & | word, | |
const std::string & | counts | |||
) | [pure virtual] |
This is a callback from the Client when an async_putNget is used on the Client So when a Client is instantiated, you need to pass a reference of (*this)
Implemented in Unigram_Model_Synchronizer_Helper.
virtual bool Synchronizer_Helper::has_to_synchronize | ( | ) | [pure virtual] |
Returns true as long as all items to be synchronized are not synchronized
Implemented in Unigram_Model_Synchronizer_Helper.
virtual void Synchronizer_Helper::initialize | ( | ) | [pure virtual] |
Implemented in Unigram_Model_Synchronizer_Helper.
virtual void Synchronizer_Helper::reset_to_synchronize | ( | ) | [pure virtual] |
After this call, has_to_synchronize() should return true
Implemented in Unigram_Model_Synchronizer_Helper.
virtual void Synchronizer_Helper::synchronize | ( | ) | [pure virtual] |
Implemented in Unigram_Model_Synchronizer_Helper.