Go to the documentation of this file.Go to the SVN repository for this file.
42 : m_RunInterval(run_delay),
43 m_StopSignal(0, 10000000)
void RequestStop()
Schedule thread Stop.
void RequestDoJob()
Interrupt the thread sleeping condition and force DoJob() run.
CThreadNonStop(unsigned run_delay, unsigned stop_request_poll=10)
Thread runs indefinetely with run_delay intervals the delay between job executions.
CAtomicCounter_WithAutoInit m_StopFlag
virtual void * Main(void)
Overload from CThread.
bool IsStopRequested() const
Return TRUE if thread stop has been requested.
virtual void DoJob(void)=0
Payload function.
unsigned int m_RunInterval
TValue Add(int delta) THROWS_NONE
Atomically add value (=delta), and return new counter value.
TValue Get(void) const THROWS_NONE
Get atomic counter value.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
bool TryWait(unsigned int timeout_sec=0, unsigned int timeout_nsec=0)
Timed wait.
void Post(unsigned int count=1)
Increment the semaphore by "count".