diff options
author | Tim Mayberry <mojofunk@gmail.com> | 2015-09-16 23:21:38 +1000 |
---|---|---|
committer | Tim Mayberry <mojofunk@gmail.com> | 2015-09-16 23:59:38 +1000 |
commit | 119e56e7eb9c58df0ac69e0e94dd6e008701b69c (patch) | |
tree | d3c08c99336a94660faed00367b1a3374e3039f5 /libs/pbd/pbd.cc | |
parent | 9bd893a6a28912ed2905a6d01d7a7abea79e58eb (diff) |
Add PBD::QPC::initialize to initialize timer and call it from PBD::init
Check timer for invalid frequency
Precalculate timer tick rate to save a few instructions
Don't use static variables inside functions to avoid checking for initialization
Use static functions inside anonymous namespace for internal linkage
Diffstat (limited to 'libs/pbd/pbd.cc')
-rw-r--r-- | libs/pbd/pbd.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/pbd/pbd.cc b/libs/pbd/pbd.cc index a4e4f6c9a3..229dc04f32 100644 --- a/libs/pbd/pbd.cc +++ b/libs/pbd/pbd.cc @@ -109,6 +109,7 @@ PBD::init () return false; } + QPC::initialize(); test_timers_from_env (); if (!PBD::MMCSS::initialize()) { |