Searched refs:napi_add_async_cleanup_hook (Results 1 – 9 of 9) sorted by relevance
/ohos5.0/docs/zh-cn/application-dev/napi/ |
H A D | use-napi-about-cleanuphook.md | 23 | napi_add_async_cleanup_hook | 注册一个异步清理钩子函数,该函数将在Node-API进程退出时异步执行。 | 140 ### napi_add_async_cleanup_hook subsection 215 napi_status status = napi_add_async_cleanup_hook(env, AsyncCleanup, data, &data->cleanupHandle); 217 napi_throw_error(env, nullptr, "Test Node-API napi_add_async_cleanup_hook failed"); 244 …hilog.info(0x0000, 'testTag', 'Test Node-API napi_add_async_cleanup_hook: %{public}s', testNapi.na… 246 …hilog.error(0x0000, 'testTag', 'Test Node-API napi_add_async_cleanup_hook error.message: %{public}…
|
H A D | napi-data-types-interfaces.md | 196 函数指针,用于napi_add_async_cleanup_hook接口,当环境销毁时会被执行。 728 | napi_add_async_cleanup_hook | 注册清理异步钩子函数。 |
|
/ohos5.0/docs/en/application-dev/napi/ |
H A D | use-napi-about-cleanuphook.md | 23 | napi_add_async_cleanup_hook | Adds an async cleanup hook function, which will be executed asynchr… 139 ### napi_add_async_cleanup_hook subsection 141 Use **napi_add_async_cleanup_hook** to add an async cleanup hook function, which will be executed a… 214 napi_status status = napi_add_async_cleanup_hook(env, AsyncCleanup, data, &data->cleanupHandle); 216 napi_throw_error(env, nullptr, "Test Node-API napi_add_async_cleanup_hook failed"); 243 …hilog.info(0x0000, 'testTag', 'Test Node-API napi_add_async_cleanup_hook: %{public}s', testNapi.na… 245 …hilog.error(0x0000, 'testTag', 'Test Node-API napi_add_async_cleanup_hook error.message: %{public}…
|
H A D | napi-data-types-interfaces.md | 196 Function pointer used with **napi_add_async_cleanup_hook**. It will be called when the environment … 717 | napi_add_async_cleanup_hook | Adds an async cleanup hook function for releasing resources when th…
|
/ohos5.0/foundation/arkui/napi/sample/native_module_systemtest/ |
H A D | test_napi.cpp | 8015 napi_status ret = napi_add_async_cleanup_hook(env, AsyncCleanupHook, data, nullptr); 8086 ret = napi_add_async_cleanup_hook(env, nullptr, nullptr, &must_not_call_handle); 8115 ret = napi_add_async_cleanup_hook(env, AsyncCleanupHook, data, &data->handle); 8119 ret = napi_add_async_cleanup_hook(env, AsyncCleanupHook, data, &data->handle); 8150 ret = napi_add_async_cleanup_hook(env, AsyncCleanupHook, data, &data->handle); 8157 ret = napi_add_async_cleanup_hook(env, AsyncCleanupHook, datatwo, &datatwo->handle); 8188 ret = napi_add_async_cleanup_hook(env, AsyncCleanupHook, data, &data->handle); 8196 ret = napi_add_async_cleanup_hook(env, AsyncCleanupHook, datatwo, &datatwo->handle); 8234 ret = napi_add_async_cleanup_hook(env, AsyncCleanupHook, data, &data->handle); 8286 ret = napi_add_async_cleanup_hook(env, AsyncCleanupHook, data, nullptr); [all …]
|
/ohos5.0/foundation/arkui/napi/test/unittest/ |
H A D | test_napi.cpp | 3869 res = napi_add_async_cleanup_hook(env, nullptr, nullptr, &mustNotCallHandle); 3889 res = napi_add_async_cleanup_hook(env, AsyncCleanupHook, data, &data->handle); 3893 res = napi_add_async_cleanup_hook(env, AsyncCleanupHook, data, &data->handle); 3916 res = napi_add_async_cleanup_hook(env, AsyncCleanupHook, data, &data->handle); 3923 res = napi_add_async_cleanup_hook(env, AsyncCleanupHook, dataTwo, &dataTwo->handle); 3946 res = napi_add_async_cleanup_hook(env, AsyncCleanupHook, data, &data->handle); 3954 res = napi_add_async_cleanup_hook(env, AsyncCleanupHook, dataTwo, &dataTwo->handle); 3983 res = napi_add_async_cleanup_hook(env, AsyncCleanupHook, data, &data->handle); 4018 res = napi_add_async_cleanup_hook(env, AsyncCleanupHook, data, nullptr); 9243 auto res = napi_add_async_cleanup_hook(nullptr, nullptr, nullptr, nullptr); [all …]
|
/ohos5.0/foundation/arkui/napi/native_engine/ |
H A D | native_node_api.cpp | 328 NAPI_EXTERN napi_status napi_add_async_cleanup_hook( in napi_add_async_cleanup_hook() function
|
/ohos5.0/docs/zh-cn/application-dev/reference/native-lib/ |
H A D | napi.md | 173 |FUNC|napi_add_async_cleanup_hook|注册清理异步钩子函数。|11|
|
/ohos5.0/docs/en/application-dev/reference/native-lib/ |
H A D | napi.md | 173 |FUNC|napi_add_async_cleanup_hook|Registers an async clean-up hook for releasing resources when the…
|