1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-01 03:10:06 +00:00

Modernised some old code.

This commit is contained in:
Julian Storer 2010-02-20 15:27:48 +00:00
parent 5c027142f4
commit 39b583fe1e
27 changed files with 966 additions and 1426 deletions

View file

@ -79,11 +79,15 @@ public:
const int elapsed = now - lastTime;
lastTime = now;
lock.enter();
decrementAllCounters (elapsed);
const int timeUntilFirstTimer = (firstTimer != 0) ? firstTimer->countdownMs
: 1000;
lock.exit();
int timeUntilFirstTimer = 1000;
{
const ScopedLock sl (lock);
decrementAllCounters (elapsed);
if (firstTimer != 0)
timeUntilFirstTimer = firstTimer->countdownMs;
}
if (timeUntilFirstTimer <= 0)
{