diff options
author | Sverker Eriksson <[email protected]> | 2016-12-16 19:30:22 +0100 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2016-12-19 19:18:57 +0100 |
commit | 4c5d33114edea787833d6aa1b0d51ea9d98b3321 (patch) | |
tree | 3cddbd9bd14a04f5c008f272d7b99dbce5610623 /erts/emulator/beam/erl_drv_nif.h | |
parent | 861b276f27952ecbb5a89748b86b7513946617f3 (diff) | |
download | otp-4c5d33114edea787833d6aa1b0d51ea9d98b3321.tar.gz otp-4c5d33114edea787833d6aa1b0d51ea9d98b3321.tar.bz2 otp-4c5d33114edea787833d6aa1b0d51ea9d98b3321.zip |
Add ErlNifSelectReturn
Diffstat (limited to 'erts/emulator/beam/erl_drv_nif.h')
-rw-r--r-- | erts/emulator/beam/erl_drv_nif.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/erts/emulator/beam/erl_drv_nif.h b/erts/emulator/beam/erl_drv_nif.h index e4ebcdb1d4..46bb06d642 100644 --- a/erts/emulator/beam/erl_drv_nif.h +++ b/erts/emulator/beam/erl_drv_nif.h @@ -56,6 +56,14 @@ enum ErlNifSelectFlags { ERL_NIF_SELECT_STOP = (1 << 2) }; +enum ErlNifSelectReturn { + ERL_NIF_SELECT_ERROR = (1 << 0), + ERL_NIF_SELECT_STOP_CALLED = (1 << 1), + ERL_NIF_SELECT_STOP_SCHEDULED = (1 << 2), + ERL_NIF_SELECT_INVALID_EVENT = (1 << 3), + ERL_NIF_SELECT_FAILED = (1 << 4) +}; + #ifdef SIZEOF_CHAR # define SIZEOF_CHAR_SAVED__ SIZEOF_CHAR # undef SIZEOF_CHAR |