OpenShot Library | libopenshot-audio  0.2.0
juce::Timer::TimerThread Class Reference
+ Inheritance diagram for juce::Timer::TimerThread:

Public Types

using LockType = CriticalSection
 

Public Member Functions

void run () override
 Must be implemented to perform the thread's actual code. More...
 
void callTimers ()
 
void callTimersSynchronously ()
 

Static Public Member Functions

static void add (Timer *tim) noexcept
 
static void remove (Timer *tim) noexcept
 
static void resetCounter (Timer *tim) noexcept
 

Static Public Attributes

static TimerThreadinstance = nullptr
 
static LockType lock
 

Detailed Description

Definition at line 26 of file juce_Timer.cpp.

Member Function Documentation

◆ run()

void juce::Timer::TimerThread::run ( )
inlineoverridevirtual

Must be implemented to perform the thread's actual code.

Remember that the thread must regularly check the threadShouldExit() method whilst running, and if this returns true it should return from the run() method as soon as possible to avoid being forcibly killed.

See also
threadShouldExit, startThread

Implements juce::Thread.

Definition at line 50 of file juce_Timer.cpp.

References juce::Time::getMillisecondCounter(), juce::Thread::threadShouldExit(), juce::WaitableEvent::wait(), and juce::Thread::wait().


The documentation for this class was generated from the following file: