From 0763a36867a702e3075b682973a079e0390144ce Mon Sep 17 00:00:00 2001
From: Sverker Eriksson
+typedef struct {
+ ErlNifResourceDtor* dtor;
+ ErlNifResourceStop* stop;
+} ErlNifResourceTypeInit;
+ Initialization structure read by
typedef void ErlNifResourceDtor(ErlNifEnv* env, void* obj);
The function prototype of a resource destructor function.
+typedef void ErlNifResourceStop(ErlNifEnv* env, void* obj);
+ The function prototype of a resource stop function,
+ called on the behalf of
@@ -2238,6 +2256,24 @@ enif_map_iterator_destroy(env, &iter);
+ Same as
Argument
Removes a reference to resource object
Removes a reference to resource object
This function can be used to receive asynchronous notifications + when OS-specific event objects become ready for either read or write operations.
+Argument
Argument
{select, Obj, Ref, ready_input | ready_output}
+ Argument
Argument
The notifications are one-shot only. To receive further notifications of the same
+ type (read or write), repeated calls to
Use
Returns 0 on success, or -1 if invalid arguments.
+