20 #ifndef COIL_CONDITION_H 21 #define COIL_CONDITION_H 86 ::pthread_cond_destroy(&
m_cond);
178 bool wait(
long second,
long nano_second = 0)
184 abstime.tv_sec = tv.tv_sec + second;
185 abstime.tv_nsec = tv.tv_usec * 1000 + nano_second;
186 if (abstime.tv_nsec >= 1000000000) {
187 abstime.tv_nsec -= 1000000000;
200 #endif // COIL_CONDITION_H
int pthread_cond_broadcast(pthread_cond_t *cv)
Resume of all the thread practice.
int pthread_cond_wait(coil::pthread_cond_t *cv, coil::Mutex *external_mutex, DWORD aMilliSecond)
Wait of the thread practice.
ACE_thread_mutex_t mutex_
Condition(M &mutex)
Constructor.
int gettimeofday(struct timeval *tv, struct timezone *tz)
Get the time and timezone.
Condition & operator=(const Mutex &)
void broadcast()
Resume of all the thread practice.
int pthread_cond_signal(pthread_cond_t *cv)
Resume of the thread practice.
static int pthread_cond_init(pthread_cond_t *cv)
bool wait(long second, long nano_second=0)
Thread practice wait of set time.
void signal()
Resume of the thread practice.
Common Object Interface Layer.
bool wait()
Wait of the thread practice.