xmsinterp
1.0
|
Thread worker class. More...
#include <ThreadLoop.h>
Classes | |
class | impl |
Implementation of ThreadLoop. More... | |
Public Member Functions | |
void | SetStartNumIterCnt (int a_startIdx, int a_numIter, int *a_cntPtr) |
Sets up the thread worker. More... | |
void | DoWork () |
Executes the work of the thread. | |
virtual BSHP< ThreadLoop > | CreateForNewThread ()=0 |
Overridden by derived class. More... | |
Protected Member Functions | |
int | CurrIdx () |
Returns the current index of the thread. More... | |
Private Member Functions | |
virtual void | Worker ()=0 |
Overridden by derived class. | |
XM_DISALLOW_COPY_AND_ASSIGN (ThreadLoop) | |
prevent compiler generated copy/assign | |
Private Attributes | |
BSHP< impl > | m_p |
implementation class | |
Thread worker class.
Class representing a boost thread.
Definition at line 23 of file ThreadLoop.h.
|
pure virtual |
Overridden by derived class.
Implemented in xms::InterpIdwImpl::InterpThread, and xms::NodalFuncImpl::NfThread.
|
protected |
Returns the current index of the thread.
Definition at line 89 of file ThreadLoop.cpp.
References m_p.
Referenced by xms::InterpIdwImpl::InterpThread::Worker(), and xms::NodalFuncImpl::NfThread::Worker().
void xms::ThreadLoop::SetStartNumIterCnt | ( | int | a_startIdx, |
int | a_numIter, | ||
int * | a_cntPtr | ||
) |
Sets up the thread worker.
[in] | a_startIdx | The starting index for this thread |
[in] | a_numIter | The number of iterations for the thread to execute |
[out] | a_cntPtr | Pointer to a counter that is updated by each iteration of this thread. |
Definition at line 79 of file ThreadLoop.cpp.
References m_p.