- Relocated Hooks::onLaunch call from the end of ::initialize to the beginning
  of ::run.
- Added a TDB2::commit between ::dispatch and Hooks::onExit.
This commit is contained in:
Paul Beckingham 2014-09-08 00:04:09 -04:00
parent 6dff1f36bf
commit d290b8792b

View file

@ -205,7 +205,6 @@ int Context::initialize (int argc, const char** argv)
// First opportunity to run a hook script. // First opportunity to run a hook script.
hooks.initialize (); hooks.initialize ();
hooks.onLaunch ();
} }
catch (const std::string& message) catch (const std::string& message)
@ -283,8 +282,10 @@ int Context::run ()
try try
{ {
hooks.onLaunch ();
rc = dispatch (output); rc = dispatch (output);
hooks.onExit (); tdb2.commit (); // Harmless if called when nothing changed.
hooks.onExit (); // No chance to update data.
std::stringstream s; std::stringstream s;
s << "Perf " s << "Perf "