summaryrefslogtreecommitdiff
path: root/libpthread/linuxthreads.old/specific.c
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2006-01-25 14:59:17 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2006-01-25 14:59:17 +0000
commit8532ba12c656528617fe86945c64626b1a815280 (patch)
tree13435dd3e306a434a44ad588247ce7a256b8b341 /libpthread/linuxthreads.old/specific.c
parentc7ccb6638aa40e5425c8c773d78d51df9d59d419 (diff)
make use of the internals provided earlier
Diffstat (limited to 'libpthread/linuxthreads.old/specific.c')
-rw-r--r--libpthread/linuxthreads.old/specific.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/libpthread/linuxthreads.old/specific.c b/libpthread/linuxthreads.old/specific.c
index b6ca94389..72409b30b 100644
--- a/libpthread/linuxthreads.old/specific.c
+++ b/libpthread/linuxthreads.old/specific.c
@@ -42,18 +42,18 @@ int pthread_key_create(pthread_key_t * key, destr_function destr)
{
int i;
- pthread_mutex_lock(&pthread_keys_mutex);
+ __pthread_mutex_lock(&pthread_keys_mutex);
for (i = 0; i < PTHREAD_KEYS_MAX; i++) {
if (! pthread_keys[i].in_use) {
/* Mark key in use */
pthread_keys[i].in_use = 1;
pthread_keys[i].destr = destr;
- pthread_mutex_unlock(&pthread_keys_mutex);
+ __pthread_mutex_unlock(&pthread_keys_mutex);
*key = i;
return 0;
}
}
- pthread_mutex_unlock(&pthread_keys_mutex);
+ __pthread_mutex_unlock(&pthread_keys_mutex);
return EAGAIN;
}
@@ -62,9 +62,9 @@ int pthread_key_delete(pthread_key_t key)
{
pthread_descr self = thread_self();
- pthread_mutex_lock(&pthread_keys_mutex);
+ __pthread_mutex_lock(&pthread_keys_mutex);
if (key >= PTHREAD_KEYS_MAX || !pthread_keys[key].in_use) {
- pthread_mutex_unlock(&pthread_keys_mutex);
+ __pthread_mutex_unlock(&pthread_keys_mutex);
return EINVAL;
}
pthread_keys[key].in_use = 0;
@@ -90,7 +90,7 @@ int pthread_key_delete(pthread_key_t key)
} while (th != self);
}
- pthread_mutex_unlock(&pthread_keys_mutex);
+ __pthread_mutex_unlock(&pthread_keys_mutex);
return 0;
}