A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/thread__nonstop_8cpp_source.html below:

NCBI C++ ToolKit: src/util/thread_nonstop.cpp Source File

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".


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4