X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mono%2Fio-layer%2Fthread-private.h;h=3ea1af1197884f7efaa31af5c52d7e52b970c7d5;hb=8eeb2cef8fb37b7aaeed5fb0c31550a1701f9bdf;hp=bae837eadce0a228af461b27dfa0dd0b15eee9a3;hpb=ff228e1c801bda9666b6edab3ee962e05edcf480;p=mono.git diff --git a/mono/io-layer/thread-private.h b/mono/io-layer/thread-private.h index bae837eadce..3ea1af11978 100644 --- a/mono/io-layer/thread-private.h +++ b/mono/io-layer/thread-private.h @@ -12,28 +12,25 @@ #include #include +#include +#include -#include +/* There doesn't seem to be a defined symbol for this */ +#define _WAPI_THREAD_CURRENT (gpointer)0xFFFFFFFE extern struct _WapiHandleOps _wapi_thread_ops; -typedef enum { - THREAD_STATE_START, - THREAD_STATE_EXITED -} WapiThreadState; - struct _WapiHandle_thread { - WapiThreadState state; - guint32 exitstatus; - pid_t owner_pid; - TimedThread *thread; - gboolean joined; + pthread_t id; + GPtrArray *owned_mutexes; }; -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); +typedef struct _WapiHandle_thread WapiHandle_thread; +extern gboolean _wapi_thread_cur_apc_pending (void); +extern void _wapi_thread_own_mutex (gpointer mutex); +extern void _wapi_thread_disown_mutex (gpointer mutex); +extern void _wapi_thread_cleanup (void); #endif /* _WAPI_THREAD_PRIVATE_H_ */