highlighter application  1.1
HCE project utils : highlighter
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
CrossThreadBuf Class Reference

#include <CrossThreadBuf.hpp>

Collaboration diagram for CrossThreadBuf:

Classes

class  ResElement

Public Member Functions

 CrossThreadBuf ()
void addInOutData (ResElement &inOutDataElem)
unsigned int elemsCount () const
bool isTaskFinished () const
void setIsSendWordsMapBack (bool _isSendWordsMapBack)
bool getIsSendWordsMapBack () const
ResElementgetElem (unsigned int index)
std::string & getIntData (unsigned int &index, unsigned long long &id, unsigned long long &resCrc)
void setOutData (std::string &outData, unsigned int highlightCounter, unsigned int index)
void setTimeout (unsigned int _timeOut)
unsigned int getRestTimeout ()
void waitCv ()
void waitCv (long milliseconds)
void signal ()
void lock ()
void unlock ()
 ~CrossThreadBuf ()

Protected Attributes

Poco::FastMutex mutex
Poco::FastMutex cvMutex
Poco::Condition cv
Poco::Timestamp tStart
Poco::Timestamp tCurr
std::vector< ResElementinOutData
unsigned int timeOut
unsigned int processingCount
unsigned int finishedCount
bool isSendWordsMapBack

Detailed Description

Definition at line 31 of file CrossThreadBuf.hpp.

Constructor & Destructor Documentation

CrossThreadBuf::CrossThreadBuf ( )
inline

Definition at line 81 of file CrossThreadBuf.hpp.

CrossThreadBuf::~CrossThreadBuf ( )
inline

Definition at line 97 of file CrossThreadBuf.hpp.

Member Function Documentation

void CrossThreadBuf::addInOutData ( ResElement inOutDataElem)
inline

Definition at line 82 of file CrossThreadBuf.hpp.

unsigned int CrossThreadBuf::elemsCount ( ) const
inline

Definition at line 83 of file CrossThreadBuf.hpp.

CrossThreadBuf::ResElement & CrossThreadBuf::getElem ( unsigned int  index)

Definition at line 16 of file CrossThreadBuf.cpp.

std::string & CrossThreadBuf::getIntData ( unsigned int &  index,
unsigned long long &  id,
unsigned long long &  resCrc 
)

Definition at line 25 of file CrossThreadBuf.cpp.

bool CrossThreadBuf::getIsSendWordsMapBack ( ) const
inline

Definition at line 86 of file CrossThreadBuf.hpp.

unsigned int CrossThreadBuf::getRestTimeout ( )

CrossThreadBuf::getRestTimeout method. Calcs and returs rest of timeout, that was set in the previous setTimeout method call

Definition at line 60 of file CrossThreadBuf.cpp.

bool CrossThreadBuf::isTaskFinished ( ) const
inline

Definition at line 84 of file CrossThreadBuf.hpp.

void CrossThreadBuf::lock ( )
inline

Definition at line 95 of file CrossThreadBuf.hpp.

void CrossThreadBuf::setIsSendWordsMapBack ( bool  _isSendWordsMapBack)
inline

Definition at line 85 of file CrossThreadBuf.hpp.

void CrossThreadBuf::setOutData ( std::string &  outData,
unsigned int  highlightCounter,
unsigned int  index 
)

Definition at line 38 of file CrossThreadBuf.cpp.

void CrossThreadBuf::setTimeout ( unsigned int  _timeOut)

Definition at line 50 of file CrossThreadBuf.cpp.

void CrossThreadBuf::signal ( )

Definition at line 93 of file CrossThreadBuf.cpp.

void CrossThreadBuf::unlock ( )
inline

Definition at line 96 of file CrossThreadBuf.hpp.

void CrossThreadBuf::waitCv ( )

Definition at line 73 of file CrossThreadBuf.cpp.

void CrossThreadBuf::waitCv ( long  milliseconds)

Definition at line 80 of file CrossThreadBuf.cpp.

Member Data Documentation

Poco::Condition CrossThreadBuf::cv
protected

Definition at line 72 of file CrossThreadBuf.hpp.

Poco::FastMutex CrossThreadBuf::cvMutex
protected

Definition at line 71 of file CrossThreadBuf.hpp.

unsigned int CrossThreadBuf::finishedCount
protected

Definition at line 78 of file CrossThreadBuf.hpp.

std::vector<ResElement> CrossThreadBuf::inOutData
protected

Definition at line 75 of file CrossThreadBuf.hpp.

bool CrossThreadBuf::isSendWordsMapBack
protected

Definition at line 79 of file CrossThreadBuf.hpp.

Poco::FastMutex CrossThreadBuf::mutex
protected

Definition at line 70 of file CrossThreadBuf.hpp.

unsigned int CrossThreadBuf::processingCount
protected

Definition at line 77 of file CrossThreadBuf.hpp.

Poco::Timestamp CrossThreadBuf::tCurr
protected

Definition at line 74 of file CrossThreadBuf.hpp.

unsigned int CrossThreadBuf::timeOut
protected

Definition at line 76 of file CrossThreadBuf.hpp.

Poco::Timestamp CrossThreadBuf::tStart
protected

Definition at line 73 of file CrossThreadBuf.hpp.


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