summaryrefslogtreecommitdiff
path: root/pthread_key_create.c
diff options
context:
space:
mode:
authorrpj <rpj>2011-03-24 23:33:14 +0000
committerrpj <rpj>2011-03-24 23:33:14 +0000
commitdb171f2f9435b98f05f33fcbc0dcf0c5cc1cb917 (patch)
tree9d617a20a9e0ad1fcf415e353057c53e6d77d0f3 /pthread_key_create.c
parente5229a33f8724a90cbb0b56c3ecc1d6691bf54d7 (diff)
First pass of robust mutexes
Diffstat (limited to 'pthread_key_create.c')
-rw-r--r--pthread_key_create.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pthread_key_create.c b/pthread_key_create.c
index 41f4854..0851c0b 100644
--- a/pthread_key_create.c
+++ b/pthread_key_create.c
@@ -98,7 +98,7 @@ pthread_key_create (pthread_key_t * key, void (*destructor) (void *))
*
* The mutex will only be created when it is first locked.
*/
- newkey->keyLock = PTHREAD_MUTEX_INITIALIZER;
+ newkey->keyLock = 0;
newkey->destructor = destructor;
}