diff options
author | Sverker Eriksson <[email protected]> | 2017-02-20 19:16:48 +0100 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2017-02-20 19:16:48 +0100 |
commit | 5adbf961a3c79a6782f8be8336ec26594754e9e8 (patch) | |
tree | 73e52c37a6d3fb160e29d7a94922b9a15f62a295 /erts/emulator/beam/erl_nif.c | |
parent | e93c9afd2415e3d500fe631d047c75fe47487baf (diff) | |
download | otp-5adbf961a3c79a6782f8be8336ec26594754e9e8.tar.gz otp-5adbf961a3c79a6782f8be8336ec26594754e9e8.tar.bz2 otp-5adbf961a3c79a6782f8be8336ec26594754e9e8.zip |
erts: Add enif_compare_monitors
# Conflicts:
# erts/emulator/test/nif_SUITE_data/nif_SUITE.c
Diffstat (limited to 'erts/emulator/beam/erl_nif.c')
-rw-r--r-- | erts/emulator/beam/erl_nif.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/erts/emulator/beam/erl_nif.c b/erts/emulator/beam/erl_nif.c index 62191c4abf..cd6fbf276b 100644 --- a/erts/emulator/beam/erl_nif.c +++ b/erts/emulator/beam/erl_nif.c @@ -3202,6 +3202,11 @@ int enif_demonitor_process(ErlNifEnv* env, void* obj, const ErlNifMonitor* monit return 0; } +int enif_compare_monitors(const ErlNifMonitor *monitor1, + const ErlNifMonitor *monitor2) +{ + return memcmp(monitor1,monitor2,sizeof(ErlNifMonitor)); +} /*************************************************************************** ** load_nif/2 ** |