1 #ifndef ossimBlock_HEADER 2 #define ossimBlock_HEADER 1 5 #include <condition_variable> 51 Block(
bool releaseFlag=
false);
63 void set(
bool releaseFlag);
std::atomic< bool > m_release
The release state.
std::condition_variable m_conditionVariable
Condition that tests the release state.
std::atomic< ossim_int32 > m_waitCount
Used to count the number of threads blocked or waiting on the condition.
std::mutex m_mutex
Used by the conditions.
This code was derived from https://gist.github.com/mshockwave.
unsigned long long ossim_uint64
This is a very simple block interface.
std::condition_variable m_conditionalWait
Will be used for destructing and releasing.