aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/erl_nif.c
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2017-02-20 19:16:48 +0100
committerSverker Eriksson <[email protected]>2017-02-20 19:16:48 +0100
commit5adbf961a3c79a6782f8be8336ec26594754e9e8 (patch)
tree73e52c37a6d3fb160e29d7a94922b9a15f62a295 /erts/emulator/beam/erl_nif.c
parente93c9afd2415e3d500fe631d047c75fe47487baf (diff)
downloadotp-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.c5
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 **