rt: Remove unused variable from lock_and_signal
This commit is contained in:
parent
f954ce5ef1
commit
6b5f7865be
@ -11,7 +11,6 @@
|
||||
|
||||
#if defined(__WIN32__)
|
||||
lock_and_signal::lock_and_signal()
|
||||
: alive(true)
|
||||
{
|
||||
// FIXME: In order to match the behavior of pthread_cond_broadcast on
|
||||
// Windows, we create manual reset events. This however breaks the
|
||||
@ -24,7 +23,7 @@ lock_and_signal::lock_and_signal()
|
||||
|
||||
#else
|
||||
lock_and_signal::lock_and_signal()
|
||||
: _locked(false), alive(true)
|
||||
: _locked(false)
|
||||
{
|
||||
CHECKED(pthread_cond_init(&_cond, NULL));
|
||||
CHECKED(pthread_mutex_init(&_mutex, NULL));
|
||||
@ -38,7 +37,6 @@ lock_and_signal::~lock_and_signal() {
|
||||
CHECKED(pthread_cond_destroy(&_cond));
|
||||
CHECKED(pthread_mutex_destroy(&_mutex));
|
||||
#endif
|
||||
alive = false;
|
||||
}
|
||||
|
||||
void lock_and_signal::lock() {
|
||||
|
@ -15,8 +15,6 @@ class lock_and_signal {
|
||||
#endif
|
||||
bool _locked;
|
||||
|
||||
bool alive;
|
||||
|
||||
public:
|
||||
lock_and_signal();
|
||||
virtual ~lock_and_signal();
|
||||
|
Loading…
x
Reference in New Issue
Block a user