* thread.cc (pthread_key_create): Drop check for incoming valid object.
This commit is contained in:
parent
03abe23b1a
commit
de32ab54d8
|
@ -1,3 +1,7 @@
|
||||||
|
2007-11-06 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
|
* thread.cc (pthread_key_create): Drop check for incoming valid object.
|
||||||
|
|
||||||
2007-11-06 Corinna Vinschen <corinna@vinschen.de>
|
2007-11-06 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* shm.cc: Include sync.h
|
* shm.cc: Include sync.h
|
||||||
|
|
|
@ -2250,11 +2250,6 @@ pthread_getschedparam (pthread_t thread, int *policy,
|
||||||
extern "C" int
|
extern "C" int
|
||||||
pthread_key_create (pthread_key_t *key, void (*destructor) (void *))
|
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);
|
*key = new pthread_key (destructor);
|
||||||
|
|
||||||
if (!pthread_key::is_good_object (key))
|
if (!pthread_key::is_good_object (key))
|
||||||
|
|
Loading…
Reference in New Issue