at_quick_exit
Da 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. |
Defined in header <stdlib.h>
|
||
int at_quick_exit( void (*func)() ); |
||
Registra a função apontada pelo
func
a ser chamado em caso de cessação programa rápido (via quick_exit).Original:
Registers the function pointed to by
func
to be called on quick program termination (via quick_exit).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.
Chamando a função de vários segmentos não induz uma corrida de dados. A implementação deverá apoiar o registro de funções, pelo menos, 32.
Original:
Calling the function from several threads does not induce a data race. The implementation shall support the registration of at least 32 functions.
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.
Índice |
[editar] Parâmetros
func | - | ponteiro para uma função a ser chamada ao término do programa normal
Original: pointer to a function to be called on normal program termination 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
0 se o registro terá êxito valor diferente de zero, caso contrário.
Original:
0 if the registration succeeds, nonzero value 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.
[editar] Exemplo
This section is incomplete Reason: no example |
[editar] Veja também
registra uma função a ser chamada no momento da invocação exit() Original: registers a function to be called on exit() invocation The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (função) | |
C++ documentation for at_quick_exit
|