File tree Expand file tree Collapse file tree 2 files changed +1
-12
lines changed Expand file tree Collapse file tree 2 files changed +1
-12
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ void sync::sleep(size_t timeout_in_ms) {
19
19
#endif
20
20
}
21
21
22
- rust_thread::rust_thread () : _is_running( false ), thread(0 ) {
22
+ rust_thread::rust_thread () : thread(0 ) {
23
23
}
24
24
25
25
#if defined(__WIN32__)
@@ -46,7 +46,6 @@ rust_thread::start() {
46
46
pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_JOINABLE);
47
47
pthread_create (&thread, &attr, rust_thread_start, (void *) this );
48
48
#endif
49
- _is_running = true ;
50
49
}
51
50
52
51
void
@@ -59,10 +58,4 @@ rust_thread::join() {
59
58
pthread_join (thread, NULL );
60
59
#endif
61
60
thread = 0 ;
62
- _is_running = false ;
63
- }
64
-
65
- bool
66
- rust_thread::is_running () {
67
- return _is_running;
68
61
}
Original file line number Diff line number Diff line change @@ -37,8 +37,6 @@ class sync {
37
37
* Thread utility class. Derive and implement your own run() method.
38
38
*/
39
39
class rust_thread {
40
- private:
41
- volatile bool _is_running;
42
40
public:
43
41
#if defined(__WIN32__)
44
42
HANDLE thread;
@@ -54,8 +52,6 @@ class rust_thread {
54
52
55
53
void join ();
56
54
57
- bool is_running ();
58
-
59
55
virtual ~rust_thread () {} // quiet the compiler
60
56
};
61
57
You can’t perform that action at this time.
0 commit comments