File tree 2 files changed +1
-5
lines changed
2 files changed +1
-5
lines changed Original file line number Diff line number Diff line change 11
11
12
12
#if defined(__WIN32__)
13
13
lock_and_signal::lock_and_signal ()
14
- : alive(true )
15
14
{
16
15
// FIXME: In order to match the behavior of pthread_cond_broadcast on
17
16
// Windows, we create manual reset events. This however breaks the
@@ -24,7 +23,7 @@ lock_and_signal::lock_and_signal()
24
23
25
24
#else
26
25
lock_and_signal::lock_and_signal ()
27
- : _locked(false ), alive( true )
26
+ : _locked(false )
28
27
{
29
28
CHECKED (pthread_cond_init (&_cond, NULL ));
30
29
CHECKED (pthread_mutex_init (&_mutex, NULL ));
@@ -38,7 +37,6 @@ lock_and_signal::~lock_and_signal() {
38
37
CHECKED (pthread_cond_destroy (&_cond));
39
38
CHECKED (pthread_mutex_destroy (&_mutex));
40
39
#endif
41
- alive = false ;
42
40
}
43
41
44
42
void lock_and_signal::lock () {
Original file line number Diff line number Diff line change @@ -15,8 +15,6 @@ class lock_and_signal {
15
15
#endif
16
16
bool _locked;
17
17
18
- bool alive;
19
-
20
18
public:
21
19
lock_and_signal ();
22
20
virtual ~lock_and_signal ();
You can’t perform that action at this time.
0 commit comments