Skip to content

Commit 54e3b09

Browse files
Use dirty schedulers unconditionally
Remove check for ERL_NIF_DIRTY_JOB_CPU_BOUND for two reasons: 1. #ifdef ERL_NIF_DIRTY_JOB_CPU_BOUND check is incorrect because ERL_NIF_DIRTY_JOB_CPU_BOUND is a enum 2. Erlang support for dirty schedulers is unconditional since 2016
1 parent 46e2754 commit 54e3b09

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

c_src/enacl_nif.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,8 @@
1717
#include "secretstream.h"
1818
#include "sign.h"
1919

20-
#ifdef ERL_NIF_DIRTY_JOB_CPU_BOUND
2120
#define erl_nif_dirty_job_cpu_bound_macro(a, b, c) \
2221
{ a, b, c, ERL_NIF_DIRTY_JOB_CPU_BOUND }
23-
#else
24-
#define erl_nif_dirty_job_cpu_bound_macro(a, b, c) \
25-
{ a, b, c }
26-
#endif
2722

2823
/* Initialization */
2924
static int enacl_crypto_load(ErlNifEnv *env, void **priv_data,

0 commit comments

Comments
 (0)