Merge pull request #5415 from kumpera/wasm-support
[mono.git] / mono / utils / mono-conc-hashtable.h
index a1d20f1b04e7695dafff1b4825eb9a3609dfa887..8c3c033ab568f3f10dd8f6107c0fb33f69f735d8 100644 (file)
@@ -1,5 +1,6 @@
-/*
- * mono-conc-hashtable.h: A mostly concurrent hashtable
+/**
+ * \file
+ * A mostly concurrent hashtable
  *
  * Author:
  *     Rodrigo Kumpera (kumpera@gmail.com)
@@ -12,7 +13,7 @@
 
 #include <mono/utils/mono-publib.h>
 #include <mono/utils/mono-compiler.h>
-#include <mono/utils/mono-mutex.h>
+#include <mono/utils/mono-os-mutex.h>
 #include <glib.h>
 
 typedef struct _MonoConcurrentHashTable MonoConcurrentHashTable;
@@ -24,6 +25,6 @@ MONO_API gpointer mono_conc_hashtable_lookup (MonoConcurrentHashTable *hash_tabl
 MONO_API gpointer mono_conc_hashtable_insert (MonoConcurrentHashTable *hash_table, gpointer key, gpointer value);
 MONO_API gpointer mono_conc_hashtable_remove (MonoConcurrentHashTable *hash_table, gpointer key);
 MONO_API void mono_conc_hashtable_foreach (MonoConcurrentHashTable *hashtable, GHFunc func, gpointer userdata);
-
+MONO_API void mono_conc_hashtable_foreach_steal (MonoConcurrentHashTable *hashtable, GHRFunc func, gpointer userdata);
 
 #endif