Espaços nominais
Variantes
Acções

tss_create

Da cppreference.com
< c‎ | thread

 
 
Biblioteca de suporte a discussão
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.
Exclusão mútua
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.
Chamar uma vez
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.
Variáveis ​​de condição
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.
Segmento local de armazenamento
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 );
(desde C11)
Cria armazenamento thread específica novo e, opcionalmente, as lojas destruidor que é chamado quando o armazenamento é excluído. O objeto apontado por tss_id está definido para o identificador do armazenamento thread específica novo.
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.

[editar] Parâmetros

tss_id -
ponteiro para a localização de memória para armazenar o identificador do armazenamento thread específica
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 -
ponteiro para uma função a ser chamada quando o armazenamento é excluído
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.

[editar] Valor de retorno

thrd_success se bem sucedido, caso contrário 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.