[PATCH 3/3] msvcrt: Implement quick_exit and _crt_at_quick_exit

Piotr Caban piotr.caban at gmail.com
Tue Jun 12 07:54:35 CDT 2018


On 06/12/18 09:43, Fabian Maurer wrote:
>  > Why don't you just call onexit functions instead of reimplementing it?
> 
>  > Note that you don't need to call MSVCRT__initialize_onexit_table when
> 
>  > quick_exit table is declared static.
> 
> What do you mean? AFAIK the onquickexit functions are different 
> functions than the one registered onexit, no? So I need to have a second 
> function that uses a different table. Or put the shared functionality 
> into a shared function.
atexit and at_quick_exit needs to manage similar table of functions. 
Because of that there's a set of helper functions that can be used to 
accomplish it (*_onexit_table functions). It's even documented that it's 
used internally: https://msdn.microsoft.com/en-us/library/mt670601.aspx

Thanks,
Piotr



More information about the wine-devel mailing list