tss_create – cppreference.com
Aus cppreference.com
<metanoindex/>
<tbody> </tbody>
| definiert in Header <threads.h> |
||
|
|
(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.
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. |
| 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. |
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.