Home
last modified time | relevance | path

Searched refs:async_id (Results 1 – 8 of 8) sorted by relevance

/third_party/node/src/
Dasync_wrap.cc114 for (auto async_id : destroy_async_id_list) { in DestroyAsyncIdsCallback() local
118 Local<Value> async_id_value = Number::New(env->isolate(), async_id); in DestroyAsyncIdsCallback()
128 void Emit(Environment* env, double async_id, AsyncHooks::Fields type, in Emit() argument
136 Local<Value> async_id_value = Number::New(env->isolate(), async_id); in Emit()
142 void AsyncWrap::EmitPromiseResolve(Environment* env, double async_id) { in EmitPromiseResolve() argument
143 Emit(env, async_id, AsyncHooks::kPromiseResolve, in EmitPromiseResolve()
164 void AsyncWrap::EmitBefore(Environment* env, double async_id) { in EmitBefore() argument
165 Emit(env, async_id, AsyncHooks::kBefore, in EmitBefore()
170 void AsyncWrap::EmitTraceEventAfter(ProviderType type, double async_id) { in EmitTraceEventAfter() argument
176 #PROVIDER "_CALLBACK", static_cast<int64_t>(async_id)); \ in EmitTraceEventAfter()
[all …]
Dasync_wrap.h155 double async_id,
158 static void EmitDestroy(Environment* env, double async_id);
159 static void EmitBefore(Environment* env, double async_id);
160 static void EmitAfter(Environment* env, double async_id);
161 static void EmitPromiseResolve(Environment* env, double async_id);
166 static void EmitTraceEventAfter(ProviderType type, double async_id);
Dnode.h905 typedef double async_id; typedef
907 ::node::async_id async_id;
908 ::node::async_id trigger_async_id;
941 NODE_EXTERN async_id AsyncHooksGetExecutionAsyncId(v8::Isolate* isolate);
944 NODE_EXTERN async_id AsyncHooksGetTriggerAsyncId(v8::Isolate* isolate);
956 async_id trigger_async_id = -1);
961 async_id trigger_async_id = -1);
1051 async_id trigger_async_id = -1);
1074 async_id get_async_id() const;
1075 async_id get_trigger_async_id() const;
Denv-inl.h153 inline void AsyncHooks::push_async_context(double async_id, in push_async_context() argument
159 CHECK_GE(async_id, -1); in push_async_context()
169 async_id_fields_[kExecutionAsyncId] = async_id; in push_async_context()
188 inline bool AsyncHooks::pop_async_context(double async_id) { in pop_async_context() argument
197 if (fields_[kCheck] > 0 && async_id_fields_[kExecutionAsyncId] != async_id) { in pop_async_context()
202 async_id); in pop_async_context()
Denv.h673 inline void push_async_context(double async_id, double trigger_async_id,
675 inline bool pop_async_context(double async_id);
/third_party/node/src/api/
Dasync_resource.cc17 async_id trigger_async_id) in AsyncResource()
57 async_id AsyncResource::get_async_id() const { in get_async_id()
58 return async_context_.async_id; in get_async_id()
61 async_id AsyncResource::get_trigger_async_id() const { in get_trigger_async_id()
Dcallback.cc72 async_context_.async_id, async_context_.trigger_async_id, object); in InternalCallbackScope()
76 if (asyncContext.async_id != 0 && !skip_hooks_) { in InternalCallbackScope()
79 AsyncWrap::EmitBefore(env, asyncContext.async_id); in InternalCallbackScope()
103 if (!failed_ && async_context_.async_id != 0 && !skip_hooks_) { in Close()
104 AsyncWrap::EmitAfter(env_, async_context_.async_id); in Close()
108 env_->async_hooks()->pop_async_context(async_context_.async_id); in Close()
192 args[0] = v8::Number::New(env->isolate(), asyncContext.async_id); in InternalMakeCallback()
Dhooks.cc175 async_id AsyncHooksGetExecutionAsyncId(Isolate* isolate) { in AsyncHooksGetExecutionAsyncId()
181 async_id AsyncHooksGetTriggerAsyncId(Isolate* isolate) { in AsyncHooksGetTriggerAsyncId()
191 async_id trigger_async_id) { in EmitAsyncInit()
202 async_id trigger_async_id) { in EmitAsyncInit()
217 AsyncWrap::EmitAsyncInit(env, resource, name, context.async_id, in EmitAsyncInit()
228 AsyncWrap::EmitDestroy(env, asyncContext.async_id); in EmitAsyncDestroy()