diff options
author | Christopher Faylor <me@cgf.cx> | 2003-11-25 22:55:31 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2003-11-25 22:55:31 +0000 |
commit | e2b9eb11e5293795731f23c546d8c51b91818f00 (patch) | |
tree | 361c4f92fa8dd58134375f2e4c11525b75c6c48b /winsup/cygwin/thread.cc | |
parent | 84f08ba160fd0a6233865f501866c6bf46f8d7b0 (diff) | |
download | newlib-e2b9eb11e5293795731f23c546d8c51b91818f00.zip newlib-e2b9eb11e5293795731f23c546d8c51b91818f00.tar.gz newlib-e2b9eb11e5293795731f23c546d8c51b91818f00.tar.bz2 |
* thread.cc: Minor whitespace cleanup. Remove some obsolete code.
Diffstat (limited to 'winsup/cygwin/thread.cc')
-rw-r--r-- | winsup/cygwin/thread.cc | 20 |
1 files changed, 3 insertions, 17 deletions
diff --git a/winsup/cygwin/thread.cc b/winsup/cygwin/thread.cc index d5a3936..36dbe02 100644 --- a/winsup/cygwin/thread.cc +++ b/winsup/cygwin/thread.cc @@ -336,10 +336,11 @@ pthread::create (void *(*func) (void *), pthread_attr *newattr, thread_printf ("CreateThread failed: this %p LastError %E", this); magic = 0; } - else { + else + { postcreate (); ResumeThread (win32_obj_id); - } + } } void @@ -2902,11 +2903,6 @@ pthread_kill (pthread_t thread, int sig) if (!pthread::is_good_object (&thread)) return EINVAL; -#if 0 - if (thread->sigs) - myself->setthread2signal (thread); -#endif - int rval = raise (sig); // unlock myself @@ -2916,16 +2912,6 @@ pthread_kill (pthread_t thread, int sig) extern "C" int pthread_sigmask (int operation, const sigset_t *set, sigset_t *old_set) { -#if 0 - pthread *thread = pthread::self (); - - // lock this myself, for the use of thread2signal - // two differt kills might clash: FIXME - - if (thread->sigs) - myself->setthread2signal (thread); -#endif - int rval = sigprocmask (operation, set, old_set); // unlock this myself |