about summary refs log tree commit diff
path: root/support/xthread.h
diff options
context:
space:
mode:
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>2020-04-27 21:40:24 +0200
committerFlorian Weimer <fweimer@redhat.com>2020-04-27 21:40:24 +0200
commita9bfa4353cd39ae2eae3c111844a32f9d3abbc19 (patch)
tree3c360a48a02fd6f975704f0a9982eb0141593932 /support/xthread.h
parentdef674652eeac60c386d04733318b311f8a5b620 (diff)
downloadglibc-a9bfa4353cd39ae2eae3c111844a32f9d3abbc19.tar.gz
glibc-a9bfa4353cd39ae2eae3c111844a32f9d3abbc19.tar.xz
glibc-a9bfa4353cd39ae2eae3c111844a32f9d3abbc19.zip
support: Implement <support/xthread.h> key create/delete
Expose xpthread_key_create and xpthread_key_delete wrappers
for tests.
Diffstat (limited to 'support/xthread.h')
-rw-r--r--support/xthread.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/support/xthread.h b/support/xthread.h
index d350d1506d..05f8d4a7d9 100644
--- a/support/xthread.h
+++ b/support/xthread.h
@@ -95,6 +95,8 @@ void xpthread_rwlock_wrlock (pthread_rwlock_t *rwlock);
 void xpthread_rwlock_rdlock (pthread_rwlock_t *rwlock);
 void xpthread_rwlock_unlock (pthread_rwlock_t *rwlock);
 void xpthread_rwlock_destroy (pthread_rwlock_t *rwlock);
+pthread_key_t xpthread_key_create (void (*destr_function) (void *));
+void xpthread_key_delete (pthread_key_t key);
 
 __END_DECLS