openshot-audio  0.1.6
Public Member Functions | Public Attributes | List of all members
ThreadPool::ThreadPoolThread Class Reference
Inheritance diagram for ThreadPool::ThreadPoolThread:
Thread

Public Member Functions

 ThreadPoolThread (ThreadPool &p)
 
void run () override
 
- Public Member Functions inherited from Thread
 Thread (const String &threadName)
 
virtual ~Thread ()
 
void startThread ()
 
void startThread (int priority)
 
bool stopThread (int timeOutMilliseconds)
 
bool isThreadRunning () const
 
void signalThreadShouldExit ()
 
bool threadShouldExit () const
 
bool waitForThreadToExit (int timeOutMilliseconds) const
 
bool setPriority (int priority)
 
void setAffinityMask (uint32 affinityMask)
 
bool wait (int timeOutMilliseconds) const
 
void notify () const
 
ThreadID getThreadId () const noexcept
 
const StringgetThreadName () const
 

Public Attributes

ThreadPoolJob *volatile currentJob
 
ThreadPoolpool
 

Additional Inherited Members

- Public Types inherited from Thread
typedef void * ThreadID
 
- Static Public Member Functions inherited from Thread
static bool setCurrentThreadPriority (int priority)
 
static void JUCE_CALLTYPE setCurrentThreadAffinityMask (uint32 affinityMask)
 
static void JUCE_CALLTYPE sleep (int milliseconds)
 
static void JUCE_CALLTYPE yield ()
 
static ThreadID JUCE_CALLTYPE getCurrentThreadId ()
 
static Thread *JUCE_CALLTYPE getCurrentThread ()
 
static void JUCE_CALLTYPE setCurrentThreadName (const String &newThreadName)
 

Constructor & Destructor Documentation

ThreadPool::ThreadPoolThread::ThreadPoolThread ( ThreadPool p)
inline

Member Function Documentation

void ThreadPool::ThreadPoolThread::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

ThreadPoolJob* volatile ThreadPool::ThreadPoolThread::currentJob
ThreadPool& ThreadPool::ThreadPoolThread::pool

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