* AssemblyNameTest.cs: Added tests for Clone and serialization without
[mono.git] / mono / io-layer / thread-private.h
1 /*
2  * thread-private.h:  Private definitions for thread handles
3  *
4  * Author:
5  *      Dick Porter (dick@ximian.com)
6  *
7  * (C) 2002 Ximian, Inc.
8  */
9
10 #ifndef _WAPI_THREAD_PRIVATE_H_
11 #define _WAPI_THREAD_PRIVATE_H_
12
13 #include <config.h>
14 #include <glib.h>
15
16 #include <mono/io-layer/timed-thread.h>
17
18 extern struct _WapiHandleOps _wapi_thread_ops;
19
20 typedef enum {
21         THREAD_STATE_START,
22         THREAD_STATE_EXITED
23 } WapiThreadState;
24
25 struct _WapiHandle_thread
26 {
27         WapiThreadState state;
28         guint32 exitstatus;
29         gpointer process_handle;
30 };
31
32 struct _WapiHandlePrivate_thread
33 {
34         TimedThread *thread;
35         gboolean joined;
36 };
37
38 gboolean _wapi_thread_apc_pending (gpointer handle);
39 gboolean _wapi_thread_cur_apc_pending (void);
40 gboolean _wapi_thread_dispatch_apc_queue (gpointer handle);
41
42
43 #endif /* _WAPI_THREAD_PRIVATE_H_ */