[erlang-questions] enif_send and smp/non-smp beam: how to check dynamically?

Steve Vinoski vinoski@REDACTED
Tue Nov 10 20:58:43 CET 2015


On Tue, Nov 10, 2015 at 2:49 PM, Constantin Rack <constantin@REDACTED> wrote:

> To check for SMP, use:
>
> > erlang:system_info(smp_support).
>
> http://www.erlang.org/doc/man/erlang.html#system_info-1
>

Or in a NIF, call enif_system_info() to check for smp support:

http://www.erlang.org/doc/man/erl_nif.html#enif_system_info
http://www.erlang.org/doc/man/erl_driver.html#ErlDrvSysInfo

--steve


>
> -Constantin
>
>
> Am 10.11.2015 um 20:44 schrieb Max Lapshin:
>
> enif_send: env==NULL on non-SMP VM
>
>
> How to check dynamically if erlang is smp or non smp and give or not give
> env?
>
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>
>
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20151110/faf1ebed/attachment.htm>


More information about the erlang-questions mailing list