tss_create
De cppreference.com
|
|
Esta página se ha traducido por ordenador/computador/computadora de la versión en inglés de la Wiki usando Google Translate.
La traducción puede contener errores y palabras aparatosas/incorrectas. Planea sobre el texto para ver la versión original. Puedes ayudar a corregir los errores y mejorar la traducción. Para instrucciones haz clic aquí. |
| Definido en el archivo de encabezado <threads.h>
|
||
int tss_create( tss_t* tss_id, tss_dtor_t destructor ); |
(desde C11) | |
Crea un nuevo hilo específico de almacenamiento y, opcionalmente, destructor tiendas que se llama cuando el almacenamiento se borra. El objeto al que apunta
tss_id se establece en el identificador del nuevo hilo específico de almacenamiento .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.
Parámetros
| tss_id | - | puntero a la ubicación de memoria para almacenar el identificador del hilo de almacenamiento específico
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 | - | puntero a una función a llamar cuando el almacenamiento se suprime
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. |
Valor de retorno
thrd_success de tener éxito, de lo contrario 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.