30 #if !defined ONLY_LOCAL_PROXY || defined INCLUDE_MIDDLE_MIX
41 #ifdef HAVE_PTHREAD_CV
42 m_pCondVar=
new pthread_cond_t;
43 pthread_cond_init(m_pCondVar,NULL);
53 #ifdef HAVE_PTHREAD_CV
54 pthread_cond_destroy(m_pCondVar);
73 #ifdef HAVE_PTHREAD_CV
74 if(pthread_cond_wait(m_pCondVar,
m_pMutex)==0)
91 #ifdef HAVE_PTHREAD_CV
92 if(pthread_cond_wait(m_pCondVar,oMutex.
m_pMutex)==0)
101 return oMutex.
lock();
109 #ifdef HAVE_PTHREAD_CV
110 if(pthread_cond_wait(m_pCondVar,pMutex->
m_pMutex)==0)
119 return pMutex->
lock();
133 #ifdef HAVE_PTHREAD_CV
136 to.tv_nsec+=(msTimeout%1000)*1000000;
137 to.tv_sec+=msTimeout/1000;
138 if(to.tv_nsec>999999999)
141 to.tv_nsec-=1000000000;
143 int ret=pthread_cond_timedwait(m_pCondVar,
m_pMutex,&to);
146 else if(ret==ETIMEDOUT)
161 #ifdef HAVE_PTHREAD_CV
162 if(pthread_cond_signal(m_pCondVar)==0)
182 #ifdef HAVE_PTHREAD_CV
183 if(pthread_cond_broadcast(m_pCondVar)==0)
198 #ifdef HAVE_PTHREAD_CV
199 pthread_cond_t* m_pCondVar;
SINT32 getcurrentTime(timespec &t)
Gets the current Systemtime in milli seconds.
SINT32 signal()
Signals this object.
SINT32 wait(CAMutex *pMutex)
Very ugly shortly to be deleted, uncommented function!
CASemaphore * m_pSemaphore
SINT32 broadcast()
Signals this object.
SINT32 wait()
Waits for a signal or for a timeout.
SINT32 wait(UINT32 msTimeout)
Waits for a signal or for a timeout.
SINT32 wait(CAMutex &oMutex)
Very ugly shortly to be deleted, uncommented function!