GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||
GeezerVison is showing cplusplus.com — at_quick_exit Reference
<cstdlib> (stdlib.h)
function
<cstdlib>
at_quick_exitint at_quick_exit (void (*func)(void)); extern "C" int at_quick_exit (void (*func)(void)) noexcept;extern "C++" int at_quick_exit (void (*func)(void)) noexcept; Set function to be executed on quick exit
If more than one at_quick_exit function has been specified by different calls to this function, they are all executed in reverse order. If a function registered with at_quick_exit throws an exception for which it does not provide a handler while called by quick_exit, terminate is automatically called (C++). Notice that the at_quick_exit stack of functions is separate from the atexit stack (and each is triggered by different circumstances), but the same function may be passed to both functions so that it is called in both cases. Particular library implementations may impose a limit on the number of functions that can be registered with at_quick_exit, but this cannot be less than 32 functions. Parameters
Return ValueA zero value is returned if the function was successfully registered.If it failed, a non-zero value is returned. Example
Output:
Data racesConcurrently calling this function introduces no data races: Calls are properly synchronized at the process level, although notice that the relative order of calls from different threads is indeterminate.Calls to at_quick_exit that do not complete before a call to quick_exit may not succeed (depends on particular library implementation). Exceptions (C++)No-throw guarantee: this function never throws exceptions.See also
Home page | Privacy policy
© cplusplus.com, 2000-2026 - All rights reserved - v3.3.4s Spotted an error? contact us | |||
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |