From 62e070d72ead4e5376e1cc43bf5340b4c2888fc5 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Sat, 29 Nov 2003 00:26:40 +0000 Subject: * pinfo.h (_pinfo::getthread2signal): Remove obsolete function. * cygtls.h (_threadinfo): Define tid more precisely. (_threadinfo::operator HANDLE): Define. * exceptions.cc (_threadinfo::interupt_now): Use _threadinfo HANDLE operator to derive thread handle. (setup_handler): Ditto. * sigproc.cc: Reorganize includes. --- winsup/cygwin/cygtls.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'winsup/cygwin/cygtls.h') diff --git a/winsup/cygwin/cygtls.h b/winsup/cygwin/cygtls.h index 8f900e9f0..c0ab189b9 100644 --- a/winsup/cygwin/cygtls.h +++ b/winsup/cygwin/cygtls.h @@ -34,7 +34,7 @@ struct _threadinfo sigset_t sigwait_mask; siginfo_t *sigwait_info; siginfo_t infodata; - void *tid; + struct pthread *tid; struct _threadinfo *prev, *next; __stack_t stack[8]; int sig; @@ -51,6 +51,7 @@ struct _threadinfo __attribute__((regparm(3))); void __stdcall interrupt_setup (int sig, void *handler, struct sigaction& siga, __stack_t retaddr) __attribute__((regparm(3))); + operator HANDLE () const {return tid->win32_obj_id;} }; #pragma pack(pop) -- cgit v1.2.3