diff options
Diffstat (limited to 'src/env-inl.h')
-rw-r--r-- | src/env-inl.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/env-inl.h b/src/env-inl.h index 1197115318..ffba6a2843 100644 --- a/src/env-inl.h +++ b/src/env-inl.h @@ -717,7 +717,7 @@ inline void Environment::remove_sub_worker_context(worker::Worker* context) { } inline bool Environment::is_stopping() const { - return thread_stopper_.IsStopped(); + return thread_stopper_.is_stopped(); } inline performance::performance_state* Environment::performance_state() { @@ -983,6 +983,14 @@ void Environment::ForEachBaseObject(T&& iterator) { } } +bool AsyncRequest::is_stopped() const { + return stopped_.load(); +} + +void AsyncRequest::set_stopped(bool flag) { + stopped_.store(flag); +} + #define VP(PropertyName, StringValue) V(v8::Private, PropertyName) #define VY(PropertyName, StringValue) V(v8::Symbol, PropertyName) #define VS(PropertyName, StringValue) V(v8::String, PropertyName) |