#ifndef _MONO_METADATA_THREADS_TYPES_H_
#define _MONO_METADATA_THREADS_TYPES_H_
-#include <config.h>
+#include <glib.h>
-#ifdef HAVE_PTHREAD
-#include <mono/metadata/threads-pthread-types.h>
-#else
-#warning "No thread support found!"
-#include <mono/metadata/threads-dummy-types.h>
-#endif
+#include <mono/io-layer/io-layer.h>
-extern void mono_threads_synchronisation_init(MonoThreadsSync *);
-extern void mono_threads_synchronisation_free(MonoThreadsSync *);
+typedef struct
+{
+ guint32 owner; /* thread ID */
+ guint32 nest;
+ volatile guint32 entry_count;
+ HANDLE entry_sem;
+ GSList *wait_list;
+} MonoThreadsSync;
#endif /* _MONO_METADATA_THREADS_TYPES_H_ */