aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/erl_nif.c
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2016-12-08 19:26:14 +0100
committerSverker Eriksson <[email protected]>2016-12-19 19:18:51 +0100
commit387ff8e3347d21e9ca5ad3d8c3a694bc79d38bca (patch)
tree65b38fbe74b5b5e83d0244073f88e56ffdc339d0 /erts/emulator/beam/erl_nif.c
parent9ffe2d285943b661317cee2b00d779a2e75a3374 (diff)
downloadotp-387ff8e3347d21e9ca5ad3d8c3a694bc79d38bca.tar.gz
otp-387ff8e3347d21e9ca5ad3d8c3a694bc79d38bca.tar.bz2
otp-387ff8e3347d21e9ca5ad3d8c3a694bc79d38bca.zip
Add stop arguments: fd and is_direct_call
Diffstat (limited to 'erts/emulator/beam/erl_nif.c')
-rw-r--r--erts/emulator/beam/erl_nif.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/erts/emulator/beam/erl_nif.c b/erts/emulator/beam/erl_nif.c
index 27abba7cfd..4e41944ccb 100644
--- a/erts/emulator/beam/erl_nif.c
+++ b/erts/emulator/beam/erl_nif.c
@@ -2124,12 +2124,13 @@ static void nif_resource_dtor(Binary* bin)
}
}
-void erts_resource_stop(ErlNifResource* resource)
+void erts_resource_stop(ErlNifResource* resource, ErlNifEvent e,
+ int is_direct_call)
{
struct enif_msg_environment_t msg_env;
ASSERT(resource->type->stop);
pre_nif_noproc(&msg_env, resource->type->owner, NULL);
- resource->type->stop(&msg_env.env, resource->data);
+ resource->type->stop(&msg_env.env, resource->data, e, is_direct_call);
post_nif_noproc(&msg_env);
}