/* * thread-private.h: Private definitions for thread handles * * Author: * Dick Porter (dick@ximian.com) * * (C) 2002 Ximian, Inc. */ #ifndef _WAPI_THREAD_PRIVATE_H_ #define _WAPI_THREAD_PRIVATE_H_ #include #include #include 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; 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); extern gpointer _wapi_thread_handle_from_id (pthread_t tid); extern void _wapi_thread_own_mutex (pthread_t tid, gpointer mutex); extern void _wapi_thread_disown_mutex (pthread_t tid, gpointer mutex); #endif /* _WAPI_THREAD_PRIVATE_H_ */