Skip to content

Commit

Permalink
Merge pull request #3613 from Dr15Jones/makeStaticConstInUtilitiesTiming
Browse files Browse the repository at this point in the history
Multithreading -- Made statics const in Utilities/Timing
  • Loading branch information
ktf committed May 1, 2014
2 parents 9a2e178 + 8a561b7 commit c5ac08c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Utilities/Timing/interface/GenTimer.h
Expand Up @@ -75,7 +75,7 @@ class GenTimer {
};

static double bias(bool insec=true, unsigned int n=5000) {
static Bias it(n);
static const Bias it(n);
return insec ? it.mes : double(it.met) ;
}

Expand Down Expand Up @@ -141,7 +141,7 @@ struct DummyTime {
};

static double oneTick() {
static OneTick local;
static const OneTick local;
return local.one;
};

Expand Down
2 changes: 1 addition & 1 deletion Utilities/Timing/interface/PentiumTimer.h
Expand Up @@ -38,7 +38,7 @@ struct PentiumTime {
};

static double oneTick() {
static OneTick local;
static const OneTick local;
return local.one;
};

Expand Down

0 comments on commit c5ac08c

Please sign in to comment.