* pinfo.cc (pinfo::exit): Eliminate use of _my_tls.thread_handle.

This commit is contained in:
Christopher Faylor 2005-09-23 19:23:26 +00:00
parent e009e2f51d
commit 08c7ea264b
2 changed files with 6 additions and 10 deletions

View File

@ -1,3 +1,7 @@
2005-09-23 Christopher Faylor <cgf@timesys.com>
* pinfo.cc (pinfo::exit): Eliminate use of _my_tls.thread_handle.
2005-09-23 Christopher Faylor <cgf@timesys.com>
* cygtls.h (struct _cygtls::thread_handle): Remove/revert.

View File

@ -170,17 +170,9 @@ pinfo::exit (DWORD n)
_my_tls.stacklock = 0;
_my_tls.stackptr = _my_tls.stack;
if (_my_tls.thread_handle)
{
sigproc_printf ("Calling ExitThread hProcess %p, n %p, exitcode %p",
hProcess, n, exitcode);
ExitThread (exitcode);
}
sigproc_printf ("Calling ExitProcess since hMainthread is 0, hProcess %p, n %p, exitcode %p",
sigproc_printf ("Calling ExitThread hProcess %p, n %p, exitcode %p",
hProcess, n, exitcode);
release ();
ExitProcess (exitcode);
ExitThread (exitcode);
}
# undef self