tss_create
Aus cppreference.com
|
|
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
<metanoindex/>
<tbody> </tbody>| definiert 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.
You can help to correct and verify the translation. Click here for instructions.
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. |
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.
You can help to correct and verify the translation. Click here for instructions.