|
|
| Author |
Message |
< Erlang questions mailing list ~ how to make binary in native thread created by enif_thread_c |
| Guest |
Posted: Wed Sep 28, 2011 9:18 am |
|
|
|
Guest
|
Jovi Zhang wrote:
> 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.
>
>
What's wrong with enif_alloc_env()?
/Sverker, Erlang/OTP
_______________________________________________
erlang-questions mailing list
erlang-questions@erlang.org
http://erlang.org/mailman/listinfo/erlang-questions
Post received from mailinglist |
|
|
| Back to top |
|
|
|
All times are GMT
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum
|
|
|