[erlang-questions] enif_select() questions

Daniel Goertzen daniel.goertzen@REDACTED
Fri May 5 21:00:32 CEST 2017


- When the resource stop() callback is invoked with is_direct_call==false,
is the provided environment considered a "process" environment? (ie, should
I pass it as the first parameter to enif_send() or leave null?)  Same
question for resource down() callback.

- enif_select() appears to not add a reference to the associated resource.
What should happen if the resource gets garbage collected (dtor invoked)
while it has outstanding an enif_select()?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20170505/9159274c/attachment.htm>


More information about the erlang-questions mailing list