[erlang-questions] enif_send and smp/non-smp beam: how to check dynamically?
Max Lapshin
max.lapshin@REDACTED
Tue Nov 10 21:39:24 CET 2015
Thanks
On Tue, Nov 10, 2015 at 10:58 PM, Steve Vinoski <vinoski@REDACTED> wrote:
>
>
> 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/99be0549/attachment.htm>
More information about the erlang-questions
mailing list