Skip to content

Commit

Permalink
Merge pull request #1342 from gartung/statics-L1Trigger-GlobalTrigger
Browse files Browse the repository at this point in the history
Multithreading fixes -- Some statics removed from L1Trigger/GlobalTrigger
  • Loading branch information
ktf committed Nov 6, 2013
2 parents 4945ac4 + 9b79452 commit a9e33fe
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions L1Trigger/GlobalTrigger/src/L1GtAlgorithmEvaluation.cc
Expand Up @@ -78,7 +78,7 @@ void L1GtAlgorithmEvaluation::evaluateAlgorithm(const int chipNumber,

// stack containing temporary results
// FIXME we shall find a better solution than static
static std::stack<bool, std::vector<bool> > resultStack;
std::stack<bool, std::vector<bool> > resultStack;
bool b1, b2;

int opNumber = 0;
Expand Down Expand Up @@ -175,8 +175,7 @@ void L1GtAlgorithmEvaluation::evaluateAlgorithm(const int chipNumber,

m_algoResult = resultStack.top();

// clear resultStack
while(!resultStack.empty()) resultStack.pop();
// clear resultStack not needed since it is now a function temporary

}

Expand Down

0 comments on commit a9e33fe

Please sign in to comment.