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