diff options
author | Sverker Eriksson <[email protected]> | 2016-12-08 19:26:14 +0100 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2016-12-19 19:18:51 +0100 |
commit | 387ff8e3347d21e9ca5ad3d8c3a694bc79d38bca (patch) | |
tree | 65b38fbe74b5b5e83d0244073f88e56ffdc339d0 /erts/emulator/beam/erl_nif.c | |
parent | 9ffe2d285943b661317cee2b00d779a2e75a3374 (diff) | |
download | otp-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.c | 5 |
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); } |