diff options
author | Christopher Faylor <me@cgf.cx> | 2005-12-05 20:20:18 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2005-12-05 20:20:18 +0000 |
commit | 09b0109620d0a6f1122844868ad30d3e66d11e94 (patch) | |
tree | 6e1672b2aa6da1db05a6d333cbed92a2abf2ed8c /winsup/cygwin/cygtls.cc | |
parent | 801d6cc7532a6f419c3553c4180820db6540f263 (diff) | |
download | cygnal-09b0109620d0a6f1122844868ad30d3e66d11e94.tar.gz cygnal-09b0109620d0a6f1122844868ad30d3e66d11e94.tar.bz2 cygnal-09b0109620d0a6f1122844868ad30d3e66d11e94.zip |
Remove unneeded whitespace.
* cygtls.cc (_cygtls::set_state): Delete.
(_cygtls::reset_exception): Ditto.
(_cygtls::init_thread): Set initialized state directly here.
(_cygtls::push): Remove exception argument. Don't treat exceptions specially.
* cygtls.h (_cygtls::push): Ditto.
(_cygtls::isinitialized): Don't treat exceptions specially.
(_cygtls::reset_exception): Delete.
(_cygtls::set_state): Ditto.
(_cygtls::handle_exceptions): Don't push ebp on the stack prior to calling
sig_send. Just set incyg instead.
(_cygtls::interrupt_setup): Accommodate _cygtls::push argument change.
(_cygtls::interrupt_now): Ditto.
(setup_handler): Don't treat exceptions specially.
* gendef (longjmp): Always zero incyg flag.
Diffstat (limited to 'winsup/cygwin/cygtls.cc')
-rw-r--r-- | winsup/cygwin/cygtls.cc | 27 |
1 files changed, 2 insertions, 25 deletions
diff --git a/winsup/cygwin/cygtls.cc b/winsup/cygwin/cygtls.cc index fa755168c..568c5af23 100644 --- a/winsup/cygwin/cygtls.cc +++ b/winsup/cygwin/cygtls.cc @@ -59,24 +59,6 @@ _cygtls::init () sentry::lock.init ("sentry_lock"); } -void -_cygtls::set_state (bool is_exception) -{ - initialized = CYGTLS_INITIALIZED + is_exception; -} - -void -_cygtls::reset_exception () -{ - if (initialized == CYGTLS_EXCEPTION) - { -#ifdef DEBUGGING - debug_printf ("resetting stack after an exception stack %p, stackptr %p", stack, stackptr); -#endif - set_state (false); - } -} - /* Two calls to get the stack right... */ void _cygtls::call (DWORD (*func) (void *, void *), void *arg) @@ -118,8 +100,8 @@ _cygtls::init_thread (void *x, DWORD (*func) (void *, void *)) init_exception_handler (handle_exceptions); } + initialized = CYGTLS_INITIALIZED; locals.exitsock = INVALID_SOCKET; - set_state (false); errno_addr = &(local_clib._errno); if ((void *) func == (void *) cygthread::stub @@ -202,14 +184,9 @@ _cygtls::remove (DWORD wait) } void -_cygtls::push (__stack_t addr, bool exception) +_cygtls::push (__stack_t addr) { - if (exception) - lock (); *stackptr++ = (__stack_t) addr; - if (exception) - unlock (); - set_state (exception); } #define BAD_IX ((size_t) -1) |