tss_create
Da cppreference.com.
|
|
Questa pagina è stata tradotta in modo automatico dalla versione in ineglese della wiki usando Google Translate.
La traduzione potrebbe contenere errori e termini strani. Muovi il puntatore sopra al testo per vedere la versione originale. Puoi aiutarci a correggere gli gli errori. Per ulteriori istruzioni clicca qui. |
<metanoindex/>
<tbody> </tbody>| Elemento definito nell'header <threads.h>
|
||
int tss_create( tss_t* tss_id, tss_dtor_t destructor ); |
(dal C11) | |
Crea un nuovo thread specifico di archiviazione e, facoltativamente, distruttore di negozi che viene chiamato quando il deposito viene eliminato. L'oggetto puntato da
tss_id è impostato l'identificatore del nuovo filo-specifica stoccaggio.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.
Parametri
| tss_id | - | puntatore alla posizione di memoria per memorizzare l'identificatore del thread specifico stoccaggio
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 | - | puntatore a una funzione da chiamare quando la memoria viene cancellata
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. |
Valore di ritorno
thrd_success caso di successo, altrimenti thrd_error.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.