diff options
author | Christopher Faylor <me@cgf.cx> | 2012-08-16 23:34:45 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2012-08-16 23:34:45 +0000 |
commit | 46f5dd59581f3405e56a48f351ed97a0af0f70ef (patch) | |
tree | 4094a58649e103f8149c09446384bed059803d85 /winsup/cygwin/thread.cc | |
parent | 00caa48b917d9c300c70403b3a9ea665a8f67d26 (diff) | |
download | newlib-46f5dd59581f3405e56a48f351ed97a0af0f70ef.zip newlib-46f5dd59581f3405e56a48f351ed97a0af0f70ef.tar.gz newlib-46f5dd59581f3405e56a48f351ed97a0af0f70ef.tar.bz2 |
whitespace cleanup
Diffstat (limited to 'winsup/cygwin/thread.cc')
-rw-r--r-- | winsup/cygwin/thread.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/winsup/cygwin/thread.cc b/winsup/cygwin/thread.cc index cf34cb7..eacf267 100644 --- a/winsup/cygwin/thread.cc +++ b/winsup/cygwin/thread.cc @@ -575,13 +575,13 @@ pthread::cancel () GetThreadContext (win32_obj_id, &context); /* The OS is not foolproof in terms of asynchronous thread cancellation and tends to hang infinitely if we change the instruction pointer. - So just don't cancel asynchronously if the thread is currently + So just don't cancel asynchronously if the thread is currently executing Windows code. Rely on deferred cancellation in this case. */ if (!cygtls->inside_kernel (&context)) - { - context.Eip = (DWORD) pthread::static_cancel_self; - SetThreadContext (win32_obj_id, &context); - } + { + context.Eip = (DWORD) pthread::static_cancel_self; + SetThreadContext (win32_obj_id, &context); + } } mutex.unlock (); /* See above. For instance, a thread which waits for a semaphore in sem_wait |