File tree 3 files changed +7
-8
lines changed
3 files changed +7
-8
lines changed Original file line number Diff line number Diff line change 33
33
#include " node_perf_common.h"
34
34
#include " node_context_data.h"
35
35
#include " tracing/agent.h"
36
+ #include " node_worker.h"
36
37
37
38
#include < stddef.h>
38
39
#include < stdint.h>
@@ -623,6 +624,11 @@ inline void Environment::remove_sub_worker_context(worker::Worker* context) {
623
624
sub_worker_contexts_.erase (context);
624
625
}
625
626
627
+ inline bool Environment::is_stopping_worker () const {
628
+ CHECK (!is_main_thread ());
629
+ return worker_context_->is_stopped ();
630
+ }
631
+
626
632
inline performance::performance_state* Environment::performance_state () {
627
633
return performance_state_.get ();
628
634
}
Original file line number Diff line number Diff line change @@ -653,9 +653,4 @@ void Environment::stop_sub_worker_contexts() {
653
653
}
654
654
}
655
655
656
- bool Environment::is_stopping_worker () const {
657
- CHECK (!is_main_thread ());
658
- return worker_context_->is_stopped ();
659
- }
660
-
661
656
} // namespace node
Original file line number Diff line number Diff line change @@ -723,9 +723,6 @@ class Environment {
723
723
inline bool can_call_into_js () const ;
724
724
inline void set_can_call_into_js (bool can_call_into_js);
725
725
726
- // TODO(addaleax): This should be inline.
727
- bool is_stopping_worker () const ;
728
-
729
726
inline bool is_main_thread () const ;
730
727
inline uint64_t thread_id () const ;
731
728
inline void set_thread_id (uint64_t id);
@@ -734,6 +731,7 @@ class Environment {
734
731
inline void add_sub_worker_context (worker::Worker* context);
735
732
inline void remove_sub_worker_context (worker::Worker* context);
736
733
void stop_sub_worker_contexts ();
734
+ inline bool is_stopping_worker () const ;
737
735
738
736
inline void ThrowError (const char * errmsg);
739
737
inline void ThrowTypeError (const char * errmsg);
You can’t perform that action at this time.
0 commit comments