4 ms·
The other way to prevent all destructors running is _exit(0); I tend to add that to software I write inside an #ifdef NDEBUG. The OS does the work faster.
by Negitivefrags 3y ago
The other way to prevent all destructors running is _exit(0);
I tend to add that to software I write inside an #ifdef NDEBUG.
The OS does the work faster.
- leg 3y agostd::quick_exit() also works, though you can decide if it's worthwhile to allow parts of the program to register functions to be called at quick exit time.