Created
December 2, 2015 01:58
-
-
Save davisp/e2628be12ced4e62118f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| static int | |
| load(ErlNifEnv* env, void** priv, ERL_NIF_TERM info) | |
| { | |
| ErlNifSysInfo sys_info; | |
| enif_system_info(&sys_info, sizeof(ErlNifSysInfo)); | |
| if(!sys_info.smp_support || !sys_info.dirty_scheduler_support) { | |
| return 1; | |
| } | |
| return 0; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment