CARMA C++
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
CondVar.h
Go to the documentation of this file.
1
#ifndef SZA_UTIL_CONDVAR_H
2
#define SZA_UTIL_CONDVAR_H
3
11
#include "
carma/szautil/Mutex.h
"
12
13
#include <pthread.h>
14
15
namespace
sza {
16
namespace
util {
17
18
class
CondVar {
19
public
:
20
24
CondVar();
25
29
virtual
~CondVar();
30
31
void
lock();
32
void
waitNoLock();
33
34
void
wait();
35
void
broadcast();
36
37
private
:
38
39
Mutex mutex_;
40
pthread_cond_t cond_;
41
bool
condVarIsReady_;
42
43
};
// End class CondVar
44
45
}
// End namespace util
46
}
// End namespace sza
47
48
49
50
#endif // End #ifndef SZA_UTIL_CONDVAR_H
Mutex.h
Tagged: Sat Mar 27 16:28:13 PST 2004.
carma
szautil
CondVar.h
Generated by
1.8.5