grammar updates
[mono.git] / mono / metadata / threads-types.h
index 307777daca29763c0a722c810652602769faee0b..3ce6f3800c7cc12bf25e5d84f800335fb57a3338 100644 (file)
 #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_ */