diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-17 10:52:03 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-17 10:52:03 +0000 |
commit | 932e4432596447eb9331cc2a2bb74a26a35b4efc (patch) | |
tree | 95161711ea07fd64f0c82d6e7943024c033dd5a8 /upstream/archlinux/man3/pthread_key_create.3 | |
parent | Adding debian version 4.22.0-1. (diff) | |
download | manpages-l10n-932e4432596447eb9331cc2a2bb74a26a35b4efc.tar.xz manpages-l10n-932e4432596447eb9331cc2a2bb74a26a35b4efc.zip |
Merging upstream version 4.23.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'upstream/archlinux/man3/pthread_key_create.3')
-rw-r--r-- | upstream/archlinux/man3/pthread_key_create.3 | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/upstream/archlinux/man3/pthread_key_create.3 b/upstream/archlinux/man3/pthread_key_create.3 index 75ad8f47..71cc41c8 100644 --- a/upstream/archlinux/man3/pthread_key_create.3 +++ b/upstream/archlinux/man3/pthread_key_create.3 @@ -3,7 +3,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH pthread_key_create 3 2023-11-24 "Linux man-pages 6.06" +.TH pthread_key_create 3 2024-05-19 "Linux man-pages 6.8" . . .SH NAME @@ -16,12 +16,15 @@ management of thread-specific data . . .SH SYNOPSIS +.nf .B #include <pthread.h> .P -.BI "int pthread_key_create(pthread_key_t *" key ", void (*" destr_function ") (void *));" -.BI "int pthread_key_delete(pthread_key_t " key ");" -.BI "int pthread_setspecific(pthread_key_t " key ", const void *" pointer ");" -.BI "void * pthread_getspecific(pthread_key_t " key ");" +.BI "int pthread_key_create(pthread_key_t *" key , +.BI " void (*" destr_function ") (void *));" +.BI "int pthread_key_delete(pthread_key_t " key ); +.BI "int pthread_setspecific(pthread_key_t " key ", const void *" pointer ); +.BI "void * pthread_getspecific(pthread_key_t " key ); +.fi . . .SH DESCRIPTION @@ -59,7 +62,7 @@ is \fBNULL\fP in all currently executing threads. The \fIdestr_function\fP argument, if not \fBNULL\fP, specifies a destructor function associated with the key. -When a thread terminates via \fBpthread_exit\fP or by cancellation, +When a thread terminates via \fBpthread_exit\fP or by cancelation, \fIdestr_function\fP is called with arguments the value associated with the key in that thread. The \fIdestr_function\fP is not called if that value is \fBNULL\fP. |