[erlang-questions] enif_send from a thread after NIF returns

Joel Reymont joelr1@REDACTED
Tue Oct 26 16:40:43 CEST 2010


On Oct 26, 2010, at 3:25 PM, Sverker Eriksson wrote:

> A safe way to make sure that your thread is joined before the library is unloaded is to create a resource object that acts as a handle to your thread. The destructor of the resource can then do join.

That makes total sense and I know understand why emonk does what it does.

	Thanks, Joel

[1] http://github.com/davisp/emonk

---
http://twitter.com/wagerlabs



More information about the erlang-questions mailing list