Merge pull request #3248 from esdrubal/web_request_abort
[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 #include <pthread.h>
16
17 #include "wapi-private.h"
18
19 /* There doesn't seem to be a defined symbol for this */
20 #define _WAPI_THREAD_CURRENT (gpointer)0xFFFFFFFE
21
22 struct _WapiHandle_thread
23 {
24         pthread_t id;
25         GPtrArray *owned_mutexes;
26         gint32 priority;
27 };
28
29 typedef struct _WapiHandle_thread WapiHandle_thread;
30
31 void
32 _wapi_thread_init (void);
33
34 extern gboolean _wapi_thread_cur_apc_pending (void);
35 extern void _wapi_thread_own_mutex (gpointer mutex);
36 extern void _wapi_thread_disown_mutex (gpointer mutex);
37 extern void _wapi_thread_cleanup (void);
38
39 #endif /* _WAPI_THREAD_PRIVATE_H_ */