Call Erlang functions from NIF

Is it possible to call Erlang functions (callbacks) from NIF?

I read the document ( http://www.erlang.org/doc/man/erl_nif.html ) but did not find how to do this.

+4
source share
1 answer

No, calling the Erlang function from NIF is not possible. You can implement your functionality in the Erlang function, which is called in a private NIF that returns a value indicating whether to call a callback or you can instead send a message to another process using enif_sendand call the callback function for you.

+5
source

Source: https://habr.com/ru/post/1621559/


All Articles