/third_party/node/src/api/ |
D | callback.cc | 21 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()
|
D | hooks.cc | 192 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/ |
D | node_api.cc | 600 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 …]
|
D | node.h | 1116 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 …]
|
D | node_api.h | 126 napi_async_context async_context); 129 napi_async_context async_context,
|
D | node_internals.h | 205 async_context asyncContext); 227 const async_context& asyncContext, 239 async_context async_context_;
|
D | async_wrap.cc | 663 async_context context { get_async_id(), get_trigger_async_id() }; in MakeCallback()
|
/third_party/node/test/node-api/test_async_context/ |
D | binding.c | 99 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/ |
D | binding.cc | 23 node::async_context{0, 0}).ToLocalChecked(); in MakeCallback() 28 node::async_context{0, 0}).ToLocalChecked(); in MakeCallback()
|
/third_party/node/test/addons/callback-scope/ |
D | binding.cc | 20 node::async_context asyncContext = { in RunInCallbackScope() 39 node::async_context{0, 0}); in Callback()
|
/third_party/node/test/addons/make-callback-domain-warning/ |
D | binding.cc | 23 node::async_context{0, 0}); in MakeCallback()
|
/third_party/node/test/addons/make-callback-recurse/ |
D | binding.cc | 23 node::async_context{0, 0}); in MakeCallback()
|
/third_party/node/test/addons/repl-domain-abort/ |
D | binding.cc | 42 node::async_context{0, 0}).ToLocalChecked(); in Method()
|
/third_party/node/test/addons/async-hello-world/ |
D | binding.cc | 11 node::async_context context;
|
/third_party/node/doc/api/ |
D | documentation.md | 64 | [Asynchronous context tracking](async_context.html) | (2) Stable |
|
D | async_hooks.md | 930 [`AsyncLocalStorage`]: async_context.md#class-asynclocalstorage 931 [`AsyncResource`]: async_context.md#class-asyncresource
|
D | deprecations.md | 1960 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
|
D | v8.md | 1155 [`AsyncLocalStorage`]: async_context.md#class-asynclocalstorage
|
D | n-api.md | 5698 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
|
D | worker_threads.md | 1390 [async-resource-worker-pool]: async_context.md#using-asyncresource-for-a-worker-thread-pool
|
D | events.md | 2593 [async context]: async_context.md
|
/third_party/mindspore/patches/ |
D | 0003-add-js-api.patch | 1469 + 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 …]
|