From de32ab54d87a84d5332d1753774a5d95da9dd126 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Tue, 6 Nov 2007 15:48:34 +0000 Subject: [PATCH] * thread.cc (pthread_key_create): Drop check for incoming valid object. --- winsup/cygwin/ChangeLog | 4 ++++ winsup/cygwin/thread.cc | 5 ----- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index afd6ccddc..feabd3eac 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,7 @@ +2007-11-06 Corinna Vinschen + + * thread.cc (pthread_key_create): Drop check for incoming valid object. + 2007-11-06 Corinna Vinschen * shm.cc: Include sync.h diff --git a/winsup/cygwin/thread.cc b/winsup/cygwin/thread.cc index f04413cfd..96397f5b0 100644 --- a/winsup/cygwin/thread.cc +++ b/winsup/cygwin/thread.cc @@ -2250,11 +2250,6 @@ pthread_getschedparam (pthread_t thread, int *policy, extern "C" int pthread_key_create (pthread_key_t *key, void (*destructor) (void *)) { - /* The opengroup docs don't define if we should check this or not, - but creation is relatively rare. */ - if (pthread_key::is_good_object (key)) - return EBUSY; - *key = new pthread_key (destructor); if (!pthread_key::is_good_object (key))