#include "config.h"
#include "vm/types.h"
+#include "threads/mutex.hpp"
+
#include "vm/global.h"
#include "vm/utf8.h"
struct hashtable {
#if defined(ENABLE_THREADS)
- java_object_t *header; /* required for locking */
+ Mutex *mutex; /* required for locking */
#endif
u4 size; /* current size of the hashtable */
u4 entries; /* number of entries in the table */
/* function prototypes ********************************************************/
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/* create hashtable */
void hashtable_create(hashtable *hash, u4 size);
/* frees a hashtable */
void hashtable_free(hashtable *hash);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* _HASHTABLE_H */