X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mono%2Futils%2Fmono-conc-hashtable.h;h=a8eb927fb35e7161fc4ee2d46efa7c6166465a76;hb=e687b1277e3ce8c45ae12be7189c5425091134fa;hp=65792bc54c8e16107ba09380d576828cc4669d02;hpb=8da27c63c37365e4467b2e780e3febcf59c8e0c7;p=mono.git diff --git a/mono/utils/mono-conc-hashtable.h b/mono/utils/mono-conc-hashtable.h index 65792bc54c8..a8eb927fb35 100644 --- a/mono/utils/mono-conc-hashtable.h +++ b/mono/utils/mono-conc-hashtable.h @@ -10,18 +10,20 @@ #ifndef __MONO_CONCURRENT_HASHTABLE_H__ #define __MONO_CONCURRENT_HASHTABLE_H__ +#include #include -#include +#include #include typedef struct _MonoConcurrentHashTable MonoConcurrentHashTable; -MonoConcurrentHashTable* mono_conc_hashtable_new (mono_mutex_t *mutex, GHashFunc hash_func, GEqualFunc key_equal_func) MONO_INTERNAL; -MonoConcurrentHashTable* mono_conc_hashtable_new_full (mono_mutex_t *mutex, GHashFunc hash_func, GEqualFunc key_equal_func, GDestroyNotify key_destroy_func, GDestroyNotify value_destroy_func) MONO_INTERNAL; -void mono_conc_hashtable_destroy (MonoConcurrentHashTable *hash_table) MONO_INTERNAL; -gpointer mono_conc_hashtable_lookup (MonoConcurrentHashTable *hash_table, gpointer key) MONO_INTERNAL; -gpointer mono_conc_hashtable_insert (MonoConcurrentHashTable *hash_table, gpointer key, gpointer value) MONO_INTERNAL; -gpointer mono_conc_hashtable_remove (MonoConcurrentHashTable *hash_table, gpointer key) MONO_INTERNAL; +MONO_API MonoConcurrentHashTable* mono_conc_hashtable_new (GHashFunc hash_func, GEqualFunc key_equal_func); +MONO_API MonoConcurrentHashTable* mono_conc_hashtable_new_full (GHashFunc hash_func, GEqualFunc key_equal_func, GDestroyNotify key_destroy_func, GDestroyNotify value_destroy_func); +MONO_API void mono_conc_hashtable_destroy (MonoConcurrentHashTable *hash_table); +MONO_API gpointer mono_conc_hashtable_lookup (MonoConcurrentHashTable *hash_table, gpointer key); +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); -#endif +#endif