[erlang-questions] Deterministic destruction of NIF resources

Roger Lipscombe roger@REDACTED
Fri Jul 15 15:57:18 CEST 2016

Who owns NIF resources? When are they garbage collected? They don't
seem to be owned by the erlang process that called into the NIF to
allocate the resource, because they're not garbage collected when that
process dies.

Or, to look at it another way: how do I return a resource from a NIF,
and have it destructed deterministically?

More information about the erlang-questions mailing list