openshot-audio  0.1.7
Classes | Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
Timer::TimerThread Class Reference
Inheritance diagram for Timer::TimerThread:
Thread DeletedAtShutdown AsyncUpdater

Public Types

typedef CriticalSection LockType
 

Public Member Functions

 TimerThread ()
 
 ~TimerThread () noexcept
 
void run () override
 
void callTimers ()
 
void callTimersSynchronously ()
 

Static Public Member Functions

static void add (Timer *const tim) noexcept
 
static void remove (Timer *const tim) noexcept
 
static void resetCounter (Timer *const tim, const int newCounter) noexcept
 

Static Public Attributes

static TimerThreadinstance = nullptr
 
static LockType lock
 

Member Typedef Documentation

Constructor & Destructor Documentation

Timer::TimerThread::TimerThread ( )
inline
Timer::TimerThread::~TimerThread ( )
inlinenoexcept

Member Function Documentation

static void Timer::TimerThread::add ( Timer *const  tim)
inlinestaticnoexcept
void Timer::TimerThread::callTimers ( )
inline
void Timer::TimerThread::callTimersSynchronously ( )
inline
static void Timer::TimerThread::remove ( Timer *const  tim)
inlinestaticnoexcept
static void Timer::TimerThread::resetCounter ( Timer *const  tim,
const int  newCounter 
)
inlinestaticnoexcept
void 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 Thread.

Member Data Documentation

Timer::TimerThread * Timer::TimerThread::instance = nullptr
static
Timer::TimerThread::LockType Timer::TimerThread::lock
static

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