20 #ifndef COIL_CONDITION_H 21 #define COIL_CONDITION_H 25 #pragma warning( disable : 4244 ) 26 #pragma warning( disable : 4312 ) 28 #include <ace/OS_NS_Thread.h> 30 #pragma warning( default : 4244 ) 31 #pragma warning( default : 4312 ) 33 #include <coil/TimeValue.h> 34 #include <coil/Time.h> 38 template <
class Mutex>
45 ACE_OS::cond_init(&
m_cond, 0);
50 ACE_OS::cond_destroy(&this->
m_cond);
56 ACE_OS::cond_signal(&
m_cond);
62 ACE_OS::cond_broadcast(&
m_cond);
71 bool wait(
long second,
long nano_second = 0)
77 ACE_Time_Value abstime(abst.
sec(), abst.
usec());
88 #endif // COIL_CONDITION_H
ACE_thread_mutex_t mutex_
int gettimeofday(struct timeval *tv, struct timezone *tz)
Get the time and timezone.
Condition & operator=(const Mutex &)
long int sec() const
Get value of second time scale.
long int usec() const
Get value of micro second time scale.
bool wait(long second, long nano_second=0)
Common Object Interface Layer.