.\" -*- coding: UTF-8 -*- .\" Copyright, Xavier Leroy .\" Copyright 2023, Alejandro Colomar .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .TH pthread_once 3 "31 octobre 2023" "Pages du manuel de Linux 6.06" . . .SH NOM pthread_once \- Exécution unique . . .SH SYNOPSIS \fB#include \fP .P \fBpthread_once_t \fP\fIonce_control\fP\fB = PTHREAD_ONCE_INIT;\fP .P \fBint pthread_once(pthread_once_t *\fP\fIonce_control\fP\fB, void (*\fP\fIinit_routine\fP\fB) (void));\fP . . .SH DESCRIPTION The purpose of \fBpthread_once\fP is to ensure that a piece of initialization code is executed at most once. The \fIonce_control\fP argument points to a static or extern variable statically initialized to \fBPTHREAD_ONCE_INIT\fP. .P The first time \fBpthread_once\fP is called with a given \fIonce_control\fP argument, it calls \fIinit_routine\fP with no argument and changes the value of the \fIonce_control\fP variable to record that initialization has been performed. Subsequent calls to \fBpthread_once\fP with the same \fBonce_control\fP argument do nothing. . . .SH "VALEUR RENVOYÉE" \fBpthread_once\fP() renvoie toujours 0. . . .SH ERREURS Aucun. .PP .SH TRADUCTION La traduction française de cette page de manuel a été créée par Gérard Delafond , Christophe Blaess , Thierry Vignaud , Alain Portal , Denis Barbier , Nicolas François , Florentin Duneau , Thomas Blein et David Prévot . .PP Cette traduction est une documentation libre ; veuillez vous reporter à la .UR https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License version 3 .UE concernant les conditions de copie et de distribution. Il n'y a aucune RESPONSABILITÉ LÉGALE. .PP Si vous découvrez un bogue dans la traduction de cette page de manuel, veuillez envoyer un message à .MT debian-l10n-french@lists.debian.org .ME .