aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/erl_nif.h
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2018-07-20 15:43:14 +0200
committerSverker Eriksson <[email protected]>2018-07-20 15:43:14 +0200
commit31d26cfc44e0b0bb84879e7043db4dcf4e0e66cc (patch)
tree6fea6d3ba3d52f9ee0cdf8ec9956ea5a8af4e823 /erts/emulator/beam/erl_nif.h
parent0e9c319480d9cfb778b654bf2cd71e7bd31464f9 (diff)
downloadotp-31d26cfc44e0b0bb84879e7043db4dcf4e0e66cc.tar.gz
otp-31d26cfc44e0b0bb84879e7043db4dcf4e0e66cc.tar.bz2
otp-31d26cfc44e0b0bb84879e7043db4dcf4e0e66cc.zip
erts: Add ERL_NIF_SELECT_CANCEL flag for enif_select
to deselect read and/or writes without stop callback.
Diffstat (limited to 'erts/emulator/beam/erl_nif.h')
-rw-r--r--erts/emulator/beam/erl_nif.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/erts/emulator/beam/erl_nif.h b/erts/emulator/beam/erl_nif.h
index 4c09496ef1..c5227a0c23 100644
--- a/erts/emulator/beam/erl_nif.h
+++ b/erts/emulator/beam/erl_nif.h
@@ -160,6 +160,8 @@ typedef int ErlNifEvent;
#define ERL_NIF_SELECT_STOP_SCHEDULED (1 << 1)
#define ERL_NIF_SELECT_INVALID_EVENT (1 << 2)
#define ERL_NIF_SELECT_FAILED (1 << 3)
+#define ERL_NIF_SELECT_READ_CANCELLED (1 << 4)
+#define ERL_NIF_SELECT_WRITE_CANCELLED (1 << 5)
typedef enum
{