- Added ::onExit.
This commit is contained in:
Paul Beckingham 2014-05-13 16:48:26 -04:00
parent 39c476134f
commit d12c519380
2 changed files with 17 additions and 0 deletions

View file

@ -49,6 +49,22 @@ void Hooks::initialize ()
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
void Hooks::onLaunch () void Hooks::onLaunch ()
{ {
context.timer_hooks.start ();
// TODO Call all launch hook scripts.
// TODO Non-zero exit status terminates launch.
context.timer_hooks.stop ();
}
////////////////////////////////////////////////////////////////////////////////
void Hooks::onExit ()
{
context.timer_hooks.start ();
// TODO Call all exit hook scripts.
context.timer_hooks.stop ();
} }
// TODO Time the hook runs. // TODO Time the hook runs.

View file

@ -38,6 +38,7 @@ public:
void initialize (); void initialize ();
void onLaunch (); void onLaunch ();
void onExit ();
private: private:
}; };