[erlang-questions] How to get scheduler_id in nif?

Zhongzheng Liu liuzhongzheng2012@REDACTED
Mon Nov 7 04:56:25 CET 2016


Scheduler_id seems to be stored in  env -> proc -> scheduler_data -> no

But it cannot be accessed in nif interface. Can I make use of it ?

Thanks

2016-11-05 13:00 GMT+08:00 Zhongzheng Liu <liuzhongzheng2012@REDACTED>:
> Hi mail list:
>
> We can use erlang:system_info(scheduler_id) in Erlang code to know
> which scheduler the code is runing on.
>
> How to get this value inside nif ?
>
>
> Thanks
>
> Zhongzheng Liu



More information about the erlang-questions mailing list