Rewrite the way application exits

Centralize in a single object all the global resources
management and avoid a bunch of sparse exit() calls.

This is more reliable and clean and more stick to C++ coding
practices.

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
Marco Costalba
2009-05-07 12:45:46 +02:00
parent 2155fb7825
commit a88e762b4e
13 changed files with 217 additions and 123 deletions

View File

@@ -29,6 +29,7 @@
#include <fstream>
#include <string>
#include "application.h"
////
//// Macros
@@ -47,6 +48,7 @@ extern int get_system_time();
extern int cpu_count();
extern int Bioskey();
////
//// Debug
////