From d5bf9ba7b558ff839862c4a2ca874fdf5028f349 Mon Sep 17 00:00:00 2001 From: Matthew Daiter Date: Tue, 1 Nov 2016 15:06:48 +0100 Subject: [PATCH] Added specific ERL_NIF_DIRTY_JOB_CPU_BOUND flag to the field declarations within cmodule.tpl --- templates/cmodule.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/cmodule.tpl b/templates/cmodule.tpl index 0e7314c..a5f7c44 100644 --- a/templates/cmodule.tpl +++ b/templates/cmodule.tpl @@ -60,7 +60,7 @@ typedef uint64_t ptr_t; */ static ErlNifFunc nif_functions[] = { {% with fn=symbols|fetch_keys %}{% for name in fn %} - {"{{name}}", {{ symbols|fetch:name|length|add:-1 }}, _nifty_{{name}}}, + {"{{name}}", {{ symbols|fetch:name|length|add:-1 }}, _nifty_{{name}}, {% if config|config_schedule_dirty %} ERL_NIF_DIRTY_JOB_CPU_BOUND {% endif %}}, {% endfor %}{% endwith %} {"erlptr_to_record", 1, erlptr_to_record}, {"record_to_erlptr", 1, record_to_erlptr},