diff options
author | Christopher Faylor <me@cgf.cx> | 2003-11-29 00:26:40 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2003-11-29 00:26:40 +0000 |
commit | 62e070d72ead4e5376e1cc43bf5340b4c2888fc5 (patch) | |
tree | 364befe95998eea84b56d7610526b34976618b40 /winsup/cygwin/cygtls.h | |
parent | 13584f077b708083b9e1cba78ff580c7bae6130e (diff) | |
download | newlib-62e070d72ead4e5376e1cc43bf5340b4c2888fc5.zip newlib-62e070d72ead4e5376e1cc43bf5340b4c2888fc5.tar.gz newlib-62e070d72ead4e5376e1cc43bf5340b4c2888fc5.tar.bz2 |
* 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.
Diffstat (limited to 'winsup/cygwin/cygtls.h')
-rw-r--r-- | winsup/cygwin/cygtls.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/winsup/cygwin/cygtls.h b/winsup/cygwin/cygtls.h index 8f900e9..c0ab189 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) |