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/exceptions.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'winsup/cygwin/exceptions.cc') diff --git a/winsup/cygwin/exceptions.cc b/winsup/cygwin/exceptions.cc index 059b570e5..ef2bf2270 100644 --- a/winsup/cygwin/exceptions.cc +++ b/winsup/cygwin/exceptions.cc @@ -745,7 +745,7 @@ _threadinfo::interrupt_now (CONTEXT *ctx, int sig, void *handler, push (0); interrupt_setup (sig, handler, siga, (__stack_t) ctx->Eip); ctx->Eip = (DWORD) sigdelayed; - SetThreadContext (myself->getthread2signal (), ctx); /* Restart the thread in a new location */ + SetThreadContext (*this, ctx); /* Restart the thread in a new location */ return 1; } @@ -801,7 +801,7 @@ setup_handler (int sig, void *handler, struct sigaction& siga, _threadinfo *tls) } DWORD res; - HANDLE hth = myself->getthread2signal (); + HANDLE hth = (HANDLE) *tls; /* Suspend the thread which will receive the signal. But first ensure that this thread doesn't have any mutos. (FIXME: Someday we should just grab -- cgit v1.2.3