2 * threads-types.h: Generic thread typedef support (includes
3 * system-specific files)
6 * Dick Porter (dick@ximian.com)
11 #ifndef _MONO_METADATA_THREADS_TYPES_H_
12 #define _MONO_METADATA_THREADS_TYPES_H_
15 #include <mono/io-layer/io-layer.h>
18 * This is bonkers. We are emulating condition variables here using
19 * win32 calls, which on Linux are being emulated with condition
22 * See http://www.cs.wustl.edu/~schmidt/win32-cv-1.html for the design.
30 /* Need to count how many times this monitor object has been
31 * locked by the owning thread, so that we can unlock it
32 * completely in Wait()
36 /* condition variable management */
37 guint32 waiters_count;
38 CRITICAL_SECTION waiters_count_lock;
41 gboolean was_broadcast;
44 #endif /* _MONO_METADATA_THREADS_TYPES_H_ */