Nifty bio photo

Nifty

Nifty - NIF interface generator

Github

You can now specify dirty schedulers on a function level. To do so you need to add functions_options to the nifty options:

1> CompileOptions = nifty_utils:add_sources(["long_running.c"], []),
   NiftyOptions = [{nifty, [{functions_options, [{"func1", [schedule_dirty_io]},
                                                 "func2", [schedule_dirty_cpu]]}]}],
   nifty:compile("long_running.h",
                 long_running,
                 CompileOptions ++ NiftyOptions).

If the global schedule_dirty option is used, then the function options overwrite the global option.