aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/test/nif_SUITE_data
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2017-02-20 20:20:29 +0100
committerSverker Eriksson <[email protected]>2017-02-20 20:20:29 +0100
commitaf7cf70ca22a34add7836963d086ca0764f4fbae (patch)
tree2c9dbcbb87fbb71142ac2356c1661e79cbb706ec /erts/emulator/test/nif_SUITE_data
parentd8d8301a252579a000b24bab87d26549da0e813a (diff)
downloadotp-af7cf70ca22a34add7836963d086ca0764f4fbae.tar.gz
otp-af7cf70ca22a34add7836963d086ca0764f4fbae.tar.bz2
otp-af7cf70ca22a34add7836963d086ca0764f4fbae.zip
Fix ErlNifMonitor handling
Diffstat (limited to 'erts/emulator/test/nif_SUITE_data')
-rw-r--r--erts/emulator/test/nif_SUITE_data/nif_SUITE.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/erts/emulator/test/nif_SUITE_data/nif_SUITE.c b/erts/emulator/test/nif_SUITE_data/nif_SUITE.c
index 69c5f09bd5..8fe5ee809a 100644
--- a/erts/emulator/test/nif_SUITE_data/nif_SUITE.c
+++ b/erts/emulator/test/nif_SUITE_data/nif_SUITE.c
@@ -2708,7 +2708,7 @@ static ERL_NIF_TERM monitor_frenzy_nif(ErlNifEnv* env, int argc, const ERL_NIF_T
else {
unsigned int resource_op = rand_bits(&rnd, 3);
r = resv[rix].obj;
- if (resource_op == 0) {
+ if (resource_op == 0) { /* delete resource */
resv[rix].obj = NULL;
resv[rix].release_cnt++;
enif_mutex_unlock(resv[rix].lock);
@@ -2717,7 +2717,7 @@ static ERL_NIF_TERM monitor_frenzy_nif(ErlNifEnv* env, int argc, const ERL_NIF_T
retval = atom_ok;
break;
}
- else if (resource_op == 1) {
+ else if (resource_op == 1) { /* return resource */
retval = enif_make_resource(env, r);
enif_mutex_unlock(resv[rix].lock);
break;