aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/safe_hash.c
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2017-08-14 16:44:38 +0200
committerLukas Larsson <[email protected]>2017-10-02 10:35:53 +0200
commite1e22afa5429909108560dc2f20912614cbe8a3c (patch)
tree00ccab0736b3bf934791888df1549f4e4bf7271a /erts/emulator/beam/safe_hash.c
parent22cde2bda706c0bd8574f0a1301170c80b5f4340 (diff)
downloadotp-e1e22afa5429909108560dc2f20912614cbe8a3c.tar.gz
otp-e1e22afa5429909108560dc2f20912614cbe8a3c.tar.bz2
otp-e1e22afa5429909108560dc2f20912614cbe8a3c.zip
erts: get_internal_state(check_io_debug) now prints to error_logger
Diffstat (limited to 'erts/emulator/beam/safe_hash.c')
-rw-r--r--erts/emulator/beam/safe_hash.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/erts/emulator/beam/safe_hash.c b/erts/emulator/beam/safe_hash.c
index ac9ebd4714..73306030ae 100644
--- a/erts/emulator/beam/safe_hash.c
+++ b/erts/emulator/beam/safe_hash.c
@@ -260,16 +260,17 @@ void* safe_hash_erase(SafeHash* h, void* tmpl)
}
/*
-** Call 'func(obj,func_arg2)' for all objects in table. NOT SAFE!!!
+** Call 'func(obj,func_arg2,func_arg3)' for all objects in table. NOT SAFE!!!
*/
-void safe_hash_for_each(SafeHash* h, void (*func)(void *, void *), void *func_arg2)
+void safe_hash_for_each(SafeHash* h, void (*func)(void *, void *, void *),
+ void *func_arg2, void *func_arg3)
{
int i;
for (i = 0; i <= h->size_mask; i++) {
SafeHashBucket* b = h->tab[i];
while (b != NULL) {
- (*func)((void *) b, func_arg2);
+ (*func)((void *) b, func_arg2, func_arg3);
b = b->next;
}
}