Skip to content

Commit 6b5f786

Browse files
committed
rt: Remove unused variable from lock_and_signal
1 parent f954ce5 commit 6b5f786

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

src/rt/sync/lock_and_signal.cpp

+1-3
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
#if defined(__WIN32__)
1313
lock_and_signal::lock_and_signal()
14-
: alive(true)
1514
{
1615
// FIXME: In order to match the behavior of pthread_cond_broadcast on
1716
// Windows, we create manual reset events. This however breaks the
@@ -24,7 +23,7 @@ lock_and_signal::lock_and_signal()
2423

2524
#else
2625
lock_and_signal::lock_and_signal()
27-
: _locked(false), alive(true)
26+
: _locked(false)
2827
{
2928
CHECKED(pthread_cond_init(&_cond, NULL));
3029
CHECKED(pthread_mutex_init(&_mutex, NULL));
@@ -38,7 +37,6 @@ lock_and_signal::~lock_and_signal() {
3837
CHECKED(pthread_cond_destroy(&_cond));
3938
CHECKED(pthread_mutex_destroy(&_mutex));
4039
#endif
41-
alive = false;
4240
}
4341

4442
void lock_and_signal::lock() {

src/rt/sync/lock_and_signal.h

-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ class lock_and_signal {
1515
#endif
1616
bool _locked;
1717

18-
bool alive;
19-
2018
public:
2119
lock_and_signal();
2220
virtual ~lock_and_signal();

0 commit comments

Comments
 (0)