[mythtv-commits] mythtv branch master updated by danielk. v0.27-pre2-576-g58584fa

Git Repo Owner noreply at mythtv.org
Sun Jan 27 22:15:41 UTC 2013


The branch, master has been updated on the
mythtv repository by gitolite user danielk.
       via  58584fad263ded549efca44bb1f2319cbe4c99fc (commit)
       via  309c97e3001b7b2748c42564d5b93b923d00a171 (commit)
      from  926464a3f11448689523db3441515ef3c6bd8ce8 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 58584fad263ded549efca44bb1f2319cbe4c99fc
Author:    Daniel Thor Kristjansson <danielk at cuymedia.net> at Sun, 27 Jan 2013 17:15:24 -0500
Committer: Daniel Thor Kristjansson <danielk at cuymedia.net> at Sun, 27 Jan 2013 17:15:34 -0500
URL:       http://code.mythtv.org/cgit/mythtv/commit/?id=58584fad263ded549efca44bb1f2319cbe4c99fc

Improves MythTimer contstructor.
Many times a MythTimer is constructed and start() is called immediately afterward.
This adds a parameter to the constructor StartState, so instead of:
  MythTimer t;
  t.start();
  do_something();
  int e = t.elapsed();

you can write:
  MythTimer t(MythTimer::StartRunning);
  do_something();
  int e = t.elapsed();

This also reverts [9402858049], which made starting the timer running the default.
The bug requiring that hack was fixed in [926464a3f1].

This also allows you to define DEBUG_TIMER_API_USAGE and have MythTimer assert
that the timer is running when elapsed is called to catch timer API misuse.



commit 309c97e3001b7b2748c42564d5b93b923d00a171
Author:    Daniel Thor Kristjansson <danielk at cuymedia.net> at Sun, 27 Jan 2013 17:04:54 -0500
Committer: Daniel Thor Kristjansson <danielk at cuymedia.net> at Sun, 27 Jan 2013 17:15:34 -0500
URL:       http://code.mythtv.org/cgit/mythtv/commit/?id=309c97e3001b7b2748c42564d5b93b923d00a171

Don't call positionMapTimer.elapsed() until timer is running.
We actually ignore the value returned until positionMapTimer.start() has
been called, so this won't cause any program misbehaviour. But we might
as well use the timer API as intended.



-----------------------------------------------------------------------

Summary of changes:
 mythtv/libs/libmythbase/mythtimer.cpp            |   24 ++++++++++++++++++++++
 mythtv/libs/libmythbase/mythtimer.h              |    7 +++++-
 mythtv/libs/libmythbase/mythversion.h            |    2 +-
 mythtv/libs/libmythbase/test/test_mythtimer.h    |    9 +++++++-
 mythtv/libs/libmythtv/recorders/recorderbase.cpp |    3 +-
 5 files changed, 41 insertions(+), 4 deletions(-)

-- 



More information about the mythtv-commits mailing list