2 * thread-private.h: Private definitions for thread handles
5 * Dick Porter (dick@ximian.com)
7 * (C) 2002 Ximian, Inc.
10 #ifndef _WAPI_THREAD_PRIVATE_H_
11 #define _WAPI_THREAD_PRIVATE_H_
16 #include <mono/utils/mono-semaphore.h>
18 /* There doesn't seem to be a defined symbol for this */
19 #define _WAPI_THREAD_CURRENT (gpointer)0xFFFFFFFE
21 extern struct _WapiHandleOps _wapi_thread_ops;
23 struct _WapiHandle_thread
26 GPtrArray *owned_mutexes;
29 typedef struct _WapiHandle_thread WapiHandle_thread;
31 extern gboolean _wapi_thread_cur_apc_pending (void);
32 extern void _wapi_thread_own_mutex (gpointer mutex);
33 extern void _wapi_thread_disown_mutex (gpointer mutex);
34 extern void _wapi_thread_cleanup (void);
36 #endif /* _WAPI_THREAD_PRIVATE_H_ */