X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mono%2Fio-layer%2Fthread-private.h;h=3ea1af1197884f7efaa31af5c52d7e52b970c7d5;hb=8eeb2cef8fb37b7aaeed5fb0c31550a1701f9bdf;hp=45ac431c3e9fb97ad3d93032f0a21afdb7654a97;hpb=7db9ee7b47d44aa1a972c675c274c160cff2112e;p=mono.git diff --git a/mono/io-layer/thread-private.h b/mono/io-layer/thread-private.h index 45ac431c3e9..3ea1af11978 100644 --- a/mono/io-layer/thread-private.h +++ b/mono/io-layer/thread-private.h @@ -17,52 +17,20 @@ /* There doesn't seem to be a defined symbol for this */ #define _WAPI_THREAD_CURRENT (gpointer)0xFFFFFFFE -extern gpointer _wapi_thread_duplicate (void); extern struct _WapiHandleOps _wapi_thread_ops; -typedef enum { - THREAD_STATE_START, - THREAD_STATE_EXITED -} WapiThreadState; - -#define INTERRUPTION_REQUESTED_HANDLE (gpointer)0xFFFFFFFE - struct _WapiHandle_thread { - guint32 exitstatus; - WapiThreadState state : 2; - guint joined : 1; - guint has_apc : 1; - /* Fields below this point are only valid for the owning process */ pthread_t id; GPtrArray *owned_mutexes; - gpointer handle; - /* - * Handle this thread waits on. If this is INTERRUPTION_REQUESTED_HANDLE, - * it means the thread is interrupted by another thread, and shouldn't enter - * a wait. - * This also acts as a reference for the handle. - */ - gpointer wait_handle; - guint32 (*start_routine)(gpointer arg); - gpointer start_arg; }; -typedef struct -{ - guint32 (*callback)(gpointer arg); - gpointer param; -} ApcInfo; +typedef struct _WapiHandle_thread WapiHandle_thread; -extern gboolean _wapi_thread_apc_pending (gpointer handle); extern gboolean _wapi_thread_cur_apc_pending (void); -extern gboolean _wapi_thread_dispatch_apc_queue (gpointer handle); extern void _wapi_thread_own_mutex (gpointer mutex); extern void _wapi_thread_disown_mutex (gpointer mutex); -extern gpointer _wapi_thread_handle_from_id (pthread_t tid); -extern void _wapi_thread_set_termination_details (gpointer handle, - guint32 exitstatus); extern void _wapi_thread_cleanup (void); #endif /* _WAPI_THREAD_PRIVATE_H_ */