Espaces de noms
Variantes
Affichages
Actions

tss_create

De cppreference.com
< c‎ | thread

 
 
Bibliothèque de support fil
Threads
Original:
Threads
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
L'exclusion mutuelle
Original:
Mutual exclusion
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Appelez fois
Original:
Call once
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Les variables de condition
Original:
Condition variables
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Stockage local des threads
Original:
Thread-local storage
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
 
Defined in header <threads.h>
int tss_create( tss_t* tss_id, tss_dtor_t destructor );
(depuis C11)
Crée un nouveau thread spécifique de stockage et éventuellement destructeur magasins qui est appelée lorsque le stockage est supprimé. L'objet pointé par tss_id est réglé à l'identifiant de la nouvelle spécifique au thread de stockage .
Original:
Creates new thread-specific storage and optionally stores destructor which is called when the storage is deleted. The object pointed to by tss_id is set to the identifier of the new thread-specific storage.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[modifier] Paramètres

tss_id -
pointeur à l'emplacement de mémoire pour stocker l'identificateur de la réserve de fil spécifique
Original:
pointer to memory location to store the identifier of the thread-specific storage
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
destructor -
pointeur vers une fonction à appeler lorsque le stockage est supprimé
Original:
pointer to a function to call when the storage is deleted
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[modifier] Retourne la valeur

thrd_success en cas de succès, thrd_error autrement .
Original:
thrd_success if successful, thrd_error otherwise.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.