[erlang-questions] Deterministic destruction of NIF resources
Fri Jul 15 17:05:11 CEST 2016
Here's a sequence I used to get deterministic resource destruction
It's been a few years since I've run that however; there's a chance newer
Erlangs might break it.
On Fri, Jul 15, 2016 at 8:57 AM Roger Lipscombe <roger@REDACTED>
> 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?
> erlang-questions mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions