Namensräume
Varianten
Aktionen

tss_create

Aus cppreference.com
< c‎ | thread

 
 
Thema Support-Bibliothek
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.
Gegenseitigen Ausschluss
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.
Rufen Sie einmal
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.
Zustand Variablen
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.
Thread-lokalen Speicher
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 );
(Seit C11)
Schafft neue Thread-spezifische Speicher und optional speichert Destruktor wird aufgerufen, wenn der Speicher gelöscht wird. Das Objekt, auf das tss_id wird die Kennung des neuen Thread-spezifische Speicher eingestellt .
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.

[Bearbeiten] Parameter

tss_id -
Zeiger auf einen Speicherbereich, um die Kennung des Thread-spezifische Speicher zu speichern
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 -
Zeiger auf eine Funktion zu nennen, wenn der Speicher gelöscht wird
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.

[Bearbeiten] Rückgabewert

thrd_success wenn erfolgreich, thrd_error sonst .
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.