aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2003-12-08 06:32:46 +0000
committerChristopher Faylor <me@cgf.cx>2003-12-08 06:32:46 +0000
commitac5ba8b0ded20b4235d3b78397186378debdf0d0 (patch)
treef00e0e650a4745f39453429190df8910628dc3af
parentda915a3aa6868a0815616ff4ba7904081968de23 (diff)
downloadnewlib-ac5ba8b0ded20b4235d3b78397186378debdf0d0.zip
newlib-ac5ba8b0ded20b4235d3b78397186378debdf0d0.tar.gz
newlib-ac5ba8b0ded20b4235d3b78397186378debdf0d0.tar.bz2
* thread.cc (pthread::precreate): Delete duplicate setting of cancel_event.
-rw-r--r--winsup/cygwin/ChangeLog5
-rw-r--r--winsup/cygwin/thread.cc9
2 files changed, 5 insertions, 9 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 63904fa..84def7e 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,5 +1,10 @@
2003-12-08 Christopher Faylor <cgf@redhat.com>
+ * thread.cc (pthread::precreate): Delete duplicate setting of
+ cancel_event.
+
+2003-12-08 Christopher Faylor <cgf@redhat.com>
+
* fhandler.h (fhandler_tty_slave::ttyname): Use name from pc since it
is guaranteed to be accurate.
* fhandler_tty.cc (fhandler_tty_slave::open): Increment open_fhs
diff --git a/winsup/cygwin/thread.cc b/winsup/cygwin/thread.cc
index c0bdb8b..a6b2f99 100644
--- a/winsup/cygwin/thread.cc
+++ b/winsup/cygwin/thread.cc
@@ -308,15 +308,6 @@ pthread::precreate (pthread_attr *newattr)
}
/* Change the mutex type to NORMAL to speed up mutex operations */
mutex.type = PTHREAD_MUTEX_NORMAL;
-
- cancel_event = ::CreateEvent (&sec_none_nih, TRUE, FALSE, NULL);
- if (!cancel_event)
- {
- system_printf ("couldn't create cancel event, this %p LastError %E", this);
- /* we need the event for correct behaviour */
- magic = 0;
- return;
- }
}
void