Home
last modified time | relevance | path

Searched refs:async_context (Results 1 – 22 of 22) sorted by relevance

/third_party/node/src/api/
Dcallback.cc21 async_context async_context) in CallbackScope() argument
22 : CallbackScope(Environment::GetCurrent(isolate), object, async_context) {} in CallbackScope()
26 async_context asyncContext) in CallbackScope()
49 const async_context& asyncContext, in InternalCallbackScope()
176 async_context asyncContext) { in InternalMakeCallback()
238 async_context asyncContext) { in MakeCallback()
249 async_context asyncContext) { in MakeCallback()
273 async_context asyncContext) { in MakeCallback()
321 async_context{0, 0}); in MakeSyncCallback()
Dhooks.cc192 async_context EmitAsyncInit(Isolate* isolate, in EmitAsyncInit()
203 async_context EmitAsyncInit(Isolate* isolate, in EmitAsyncInit()
215 async_context context = { in EmitAsyncInit()
227 void EmitAsyncDestroy(Isolate* isolate, async_context asyncContext) { in EmitAsyncDestroy()
231 void EmitAsyncDestroy(Environment* env, async_context asyncContext) { in EmitAsyncDestroy()
/third_party/node/src/
Dnode_api.cc600 inline node::async_context async_context() { in async_context() function in v8impl::__anon2b7257620411::AsyncContext
612 AsyncContext* async_context = data.GetParameter(); in WeakCallback() local
613 async_context->resource_.Reset(); in WeakCallback()
614 async_context->lost_reference_ = true; in WeakCallback()
620 explicit CallbackScope(AsyncContext* async_context) in CallbackScope() argument
621 : node::CallbackScope(async_context->node_env(), in CallbackScope()
622 async_context->resource_.Get( in CallbackScope()
623 async_context->node_env()->isolate()), in CallbackScope()
624 async_context->async_context()) {} in CallbackScope()
935 v8impl::AsyncContext* async_context = in napi_async_init() local
[all …]
Dnode.h1116 struct async_context { struct
1186 NODE_EXTERN async_context EmitAsyncInit(v8::Isolate* isolate,
1191 NODE_EXTERN async_context EmitAsyncInit(v8::Isolate* isolate,
1203 async_context asyncContext);
1205 async_context asyncContext);
1228 async_context asyncContext);
1231 async_context asyncContext);
1260 async_context asyncContext);
1267 async_context asyncContext);
1274 async_context asyncContext);
[all …]
Dnode_api.h126 napi_async_context async_context);
129 napi_async_context async_context,
Dnode_internals.h205 async_context asyncContext);
227 const async_context& asyncContext,
239 async_context async_context_;
Dasync_wrap.cc663 async_context context { get_async_id(), get_trigger_async_id() }; in MakeCallback()
/third_party/node/test/node-api/test_async_context/
Dbinding.c99 napi_async_context async_context; in DestroyAsyncResource() local
101 napi_remove_wrap(env, async_context_wrap, (void**)&async_context)); in DestroyAsyncResource()
102 NODE_API_CALL(env, napi_async_destroy(env, async_context)); in DestroyAsyncResource()
/third_party/node/test/addons/make-callback/
Dbinding.cc23 node::async_context{0, 0}).ToLocalChecked(); in MakeCallback()
28 node::async_context{0, 0}).ToLocalChecked(); in MakeCallback()
/third_party/node/test/addons/callback-scope/
Dbinding.cc20 node::async_context asyncContext = { in RunInCallbackScope()
39 node::async_context{0, 0}); in Callback()
/third_party/node/test/addons/make-callback-domain-warning/
Dbinding.cc23 node::async_context{0, 0}); in MakeCallback()
/third_party/node/test/addons/make-callback-recurse/
Dbinding.cc23 node::async_context{0, 0}); in MakeCallback()
/third_party/node/test/addons/repl-domain-abort/
Dbinding.cc42 node::async_context{0, 0}).ToLocalChecked(); in Method()
/third_party/node/test/addons/async-hello-world/
Dbinding.cc11 node::async_context context;
/third_party/node/doc/api/
Ddocumentation.md64 | [Asynchronous context tracking](async_context.html) | (2) Stable |
Dasync_hooks.md930 [`AsyncLocalStorage`]: async_context.md#class-asynclocalstorage
931 [`AsyncResource`]: async_context.md#class-asyncresource
Ddeprecations.md1960 should start using the `async_context` variant of `MakeCallback` or
2000 deprecated. Please use the versions of the API that accept an `async_context`
3348 [`asyncResource.runInAsyncScope()`]: async_context.md#asyncresourceruninasyncscopefn-thisarg-args
Dv8.md1155 [`AsyncLocalStorage`]: async_context.md#class-asynclocalstorage
Dn-api.md5698 napi_async_context async_context);
5702 * `[in] async_context`: The async context to be destroyed.
5716 description: Added `async_context` parameter.
5721 napi_async_context async_context,
5730 * `[in] async_context`: Context for the async operation that is
5734 for `async_context` does not result in an error. However, this results
Dworker_threads.md1390 [async-resource-worker-pool]: async_context.md#using-asyncresource-for-a-worker-thread-pool
Devents.md2593 [async context]: async_context.md
/third_party/mindspore/patches/
D0003-add-js-api.patch1469 + static napi_value CreateMSLiteModelWrapper(napi_env env, MSLiteModelAsyncContext *async_context);
1478 + MSLiteModelAsyncContext *async_context);
2889 …e MSLiteModelNapi::CreateMSLiteModelWrapper(napi_env env, MSLiteModelAsyncContext *async_context) {
2901 + model_info_ = &(async_context->model_info);
2902 + context_ = &(async_context->context);
2913 + auto async_context = static_cast<MSLiteModelAsyncContext *>(data);
2915 + if (async_context != nullptr) {
2916 + if (!async_context->status) {
2917 + valueParam = CreateMSLiteModelWrapper(env, async_context);
2919 + CommonCallbackRoutine(env, async_context, valueParam);
[all …]