[erlang-questions] how to make binary in native thread created by enif_thread_create?

Jovi Zhang <>
Wed Sep 28 09:10:16 CEST 2011


Hi,
    This is a question about erlang NIF thread.

    As title, I cannot invoke enif_make_binary in native thread
created by enif_thread_create.

    enif_make_binary need a env parameter, but it native thread, there
don't have this env, of course I cannot use process bond environment,
because those environment is invalid after
    NIF call finished.

.jovi



More information about the erlang-questions mailing list