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.
 
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 Typedef Documentation

◆ LockType

Constructor & Destructor Documentation

◆ TimerThread()

juce::Timer::TimerThread::TimerThread ( )
inline

Definition at line 33 of file juce_Timer.cpp.

◆ ~TimerThread()

juce::Timer::TimerThread::~TimerThread ( )
inlineoverride

Definition at line 39 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::Thread::wait(), and juce::WaitableEvent::wait().

◆ callTimers()

void juce::Timer::TimerThread::callTimers ( )
inline

Definition at line 92 of file juce_Timer.cpp.

◆ callTimersSynchronously()

void juce::Timer::TimerThread::callTimersSynchronously ( )
inline

Definition at line 126 of file juce_Timer.cpp.

◆ add()

static void juce::Timer::TimerThread::add ( Timer tim)
inlinestaticnoexcept

Definition at line 139 of file juce_Timer.cpp.

◆ remove()

static void juce::Timer::TimerThread::remove ( Timer tim)
inlinestaticnoexcept

Definition at line 147 of file juce_Timer.cpp.

◆ resetCounter()

static void juce::Timer::TimerThread::resetCounter ( Timer tim)
inlinestaticnoexcept

Definition at line 153 of file juce_Timer.cpp.

Member Data Documentation

◆ instance

Timer::TimerThread * juce::Timer::TimerThread::instance = nullptr
static

Definition at line 159 of file juce_Timer.cpp.

◆ lock

Timer::TimerThread::LockType juce::Timer::TimerThread::lock
static

Definition at line 160 of file juce_Timer.cpp.


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