<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Nov 10, 2015 at 2:49 PM, Constantin Rack <span dir="ltr"><<a href="mailto:constantin@rack.li" target="_blank">constantin@rack.li</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div style="word-wrap:break-word"><div>To check for SMP, use:</div><div><br></div>> erlang:system_info(smp_support).<div><br></div><div><a href="http://www.erlang.org/doc/man/erlang.html#system_info-1" target="_blank">http://www.erlang.org/doc/man/erlang.html#system_info-1</a></div></div></blockquote><div><br></div><div>Or in a NIF, call enif_system_info() to check for smp support:</div><div><br></div><div><a href="http://www.erlang.org/doc/man/erl_nif.html#enif_system_info">http://www.erlang.org/doc/man/erl_nif.html#enif_system_info</a></div><div><a href="http://www.erlang.org/doc/man/erl_driver.html#ErlDrvSysInfo">http://www.erlang.org/doc/man/erl_driver.html#ErlDrvSysInfo</a><br></div><div><br></div><div>--steve</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div style="word-wrap:break-word"><div><br></div><div>-Constantin</div><div><br></div><div><br><div><span class=""><div>Am 10.11.2015 um 20:44 schrieb Max Lapshin:</div><br></span><blockquote type="cite"><span class=""><div dir="ltr"><p><span>enif_send: env==NULL on non-SMP VM</span></p><p><span><br></span></p><p><span>How to check dynamically if erlang is smp or non smp and give or not give env?</span></p><p><span><br></span></p></div></span>
_______________________________________________<br>erlang-questions mailing list<br><a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br><a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br></blockquote></div><br></div></div><br>_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" rel="noreferrer" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
<br></blockquote></div><br></div></div>