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:
parent
5c027142f4
commit
39b583fe1e
27 changed files with 966 additions and 1426 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue