summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/exceptions.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2003-11-29 00:26:40 +0000
committerChristopher Faylor <me@cgf.cx>2003-11-29 00:26:40 +0000
commit62e070d72ead4e5376e1cc43bf5340b4c2888fc5 (patch)
tree364befe95998eea84b56d7610526b34976618b40 /winsup/cygwin/exceptions.cc
parent13584f077b708083b9e1cba78ff580c7bae6130e (diff)
downloadcygnal-62e070d72ead4e5376e1cc43bf5340b4c2888fc5.tar.gz
cygnal-62e070d72ead4e5376e1cc43bf5340b4c2888fc5.tar.bz2
cygnal-62e070d72ead4e5376e1cc43bf5340b4c2888fc5.zip
* 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/exceptions.cc')
-rw-r--r--winsup/cygwin/exceptions.cc4
1 files changed, 2 insertions, 2 deletions
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