From 387ff8e3347d21e9ca5ad3d8c3a694bc79d38bca Mon Sep 17 00:00:00 2001
From: Sverker Eriksson
Date: Thu, 8 Dec 2016 19:26:14 +0100
Subject: Add stop arguments: fd and is_direct_call
---
erts/doc/src/erl_nif.xml | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
(limited to 'erts/doc/src')
diff --git a/erts/doc/src/erl_nif.xml b/erts/doc/src/erl_nif.xml
index e7073a962f..94aff7c67b 100644
--- a/erts/doc/src/erl_nif.xml
+++ b/erts/doc/src/erl_nif.xml
@@ -718,10 +718,12 @@ typedef void ErlNifResourceDtor(ErlNifEnv* env, void* obj);
ErlNifResourceStop
-
-typedef void ErlNifResourceStop(ErlNifEnv* env, void* obj);
+typedef void ErlNifResourceStop(ErlNifEnv* env, void* obj, ErlNifEvent event, int is_direct_call);
The function prototype of a resource stop function,
called on the behalf of
- enif_select.
+ enif_select. obj is the resource, event is OS event,
+ is_direct_call is true if the call is made directly from enif_select
+ or false if it is a scheduled call (potentially from another thread).
ErlNifCharEncoding
-
--
cgit v1.2.3