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_
17 #include <mono/io-layer/io-layer.h>
20 * This is bonkers. We are emulating condition variables here using
21 * win32 calls, which on Linux are being emulated with condition
24 * See http://www.cs.wustl.edu/~schmidt/win32-cv-1.html for the design.
32 /* Need to count how many times this monitor object has been
33 * locked by the owning thread, so that we can unlock it
34 * completely in Wait()
38 /* condition variable management */
39 guint32 waiters_count;
40 CRITICAL_SECTION waiters_count_lock;
43 gboolean was_broadcast;
46 #endif /* _MONO_METADATA_THREADS_TYPES_H_ */