Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src/api
diff options
context:
space:
mode:
authorTyler Ang-Wanek <tylerw@axosoft.com>2021-01-19 17:39:14 +0300
committerJames M Snell <jasnell@gmail.com>2021-01-24 22:12:03 +0300
commit1fe571aa0c55814e58f6efefedf69da8d358034b (patch)
tree95e1529084f5b7b08224887997a6f16cd21c8a4c /src/api
parenta87190b00c8862b980dfd6607e28455bef6297e9 (diff)
src: inline AsyncCleanupHookHandle in headers
Fixes: https://github.com/nodejs/node/issues/36349 PR-URL: https://github.com/nodejs/node/pull/37000 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'src/api')
-rw-r--r--src/api/hooks.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/api/hooks.cc b/src/api/hooks.cc
index f3f685b167f..514706d4c87 100644
--- a/src/api/hooks.cc
+++ b/src/api/hooks.cc
@@ -145,7 +145,7 @@ static void RunAsyncCleanupHook(void* arg) {
info->fun(info->arg, FinishAsyncCleanupHook, info);
}
-AsyncCleanupHookHandle AddEnvironmentCleanupHook(
+ACHHandle* AddEnvironmentCleanupHookRaw(
Isolate* isolate,
AsyncCleanupHook fun,
void* arg) {
@@ -157,11 +157,11 @@ AsyncCleanupHookHandle AddEnvironmentCleanupHook(
info->arg = arg;
info->self = info;
env->AddCleanupHook(RunAsyncCleanupHook, info.get());
- return AsyncCleanupHookHandle(new ACHHandle { info });
+ return new ACHHandle { info };
}
-void RemoveEnvironmentCleanupHook(
- AsyncCleanupHookHandle handle) {
+void RemoveEnvironmentCleanupHookRaw(
+ ACHHandle* handle) {
if (handle->info->started) return;
handle->info->self.reset();
handle->info->env->RemoveCleanupHook(RunAsyncCleanupHook, handle->info.get());