webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Member Functions | Protected Types | Protected Member Functions | Friends | List of all members
WTF::AutomaticThread Class Referenceabstract

#include <AutomaticThread.h>

Inheritance diagram for WTF::AutomaticThread:
WTF::ThreadSafeRefCounted< AutomaticThread > WTF::ThreadSafeRefCounted< AutomaticThread > WTF::ThreadSafeRefCounted< AutomaticThread > WTF::ThreadSafeRefCountedBase WTF::ThreadSafeRefCountedBase WTF::ThreadSafeRefCountedBase WTF::ThreadSafeRefCountedBase WTF::ThreadSafeRefCountedBase WTF::ThreadSafeRefCountedBase WTF::ThreadSafeRefCountedBase WTF::ThreadSafeRefCountedBase WTF::ThreadSafeRefCountedBase WTF::ParallelHelperPool::Thread

Public Member Functions

virtual ~AutomaticThread ()
 
bool hasUnderlyingThread (const AbstractLocker &) const
 
bool tryStop (const AbstractLocker &)
 
bool isWaiting (const AbstractLocker &)
 
bool notify (const AbstractLocker &)
 
void join ()
 
virtual ~AutomaticThread ()
 
bool hasUnderlyingThread (const AbstractLocker &) const
 
bool tryStop (const AbstractLocker &)
 
bool isWaiting (const AbstractLocker &)
 
bool notify (const AbstractLocker &)
 
void join ()
 
virtual ~AutomaticThread ()
 
bool hasUnderlyingThread (const AbstractLocker &) const
 
bool tryStop (const AbstractLocker &)
 
bool isWaiting (const AbstractLocker &)
 
bool notify (const AbstractLocker &)
 
void join ()
 
- Public Member Functions inherited from WTF::ThreadSafeRefCounted< AutomaticThread >
void deref () const
 
void deref () const
 
void deref () const
 
- Public Member Functions inherited from WTF::ThreadSafeRefCountedBase
 ThreadSafeRefCountedBase ()=default
 
void ref () const
 
bool hasOneRef () const
 
unsigned refCount () const
 
 ThreadSafeRefCountedBase ()=default
 
void ref () const
 
bool hasOneRef () const
 
unsigned refCount () const
 
 ThreadSafeRefCountedBase ()=default
 
void ref () const
 
bool hasOneRef () const
 
unsigned refCount () const
 

Protected Types

enum  PollResult {
  PollResult::Work, PollResult::Stop, PollResult::Wait, PollResult::Work,
  PollResult::Stop, PollResult::Wait, PollResult::Work, PollResult::Stop,
  PollResult::Wait
}
 
enum  WorkResult {
  WorkResult::Continue, WorkResult::Stop, WorkResult::Continue, WorkResult::Stop,
  WorkResult::Continue, WorkResult::Stop
}
 
enum  PollResult {
  PollResult::Work, PollResult::Stop, PollResult::Wait, PollResult::Work,
  PollResult::Stop, PollResult::Wait, PollResult::Work, PollResult::Stop,
  PollResult::Wait
}
 
enum  WorkResult {
  WorkResult::Continue, WorkResult::Stop, WorkResult::Continue, WorkResult::Stop,
  WorkResult::Continue, WorkResult::Stop
}
 
enum  PollResult {
  PollResult::Work, PollResult::Stop, PollResult::Wait, PollResult::Work,
  PollResult::Stop, PollResult::Wait, PollResult::Work, PollResult::Stop,
  PollResult::Wait
}
 
enum  WorkResult {
  WorkResult::Continue, WorkResult::Stop, WorkResult::Continue, WorkResult::Stop,
  WorkResult::Continue, WorkResult::Stop
}
 

Protected Member Functions

 AutomaticThread (const AbstractLocker &, Box< Lock >, RefPtr< AutomaticThreadCondition >)
 
virtual PollResult poll (const AbstractLocker &)=0
 
virtual WorkResult work ()=0
 
virtual void threadDidStart ()
 
virtual void threadIsStopping (const AbstractLocker &)
 
 AutomaticThread (const AbstractLocker &, Box< Lock >, RefPtr< AutomaticThreadCondition >)
 
virtual PollResult poll (const AbstractLocker &)=0
 
virtual WorkResult work ()=0
 
virtual void threadDidStart ()
 
virtual void threadIsStopping (const AbstractLocker &)
 
 AutomaticThread (const AbstractLocker &, Box< Lock >, RefPtr< AutomaticThreadCondition >)
 
virtual PollResult poll (const AbstractLocker &)=0
 
virtual WorkResult work ()=0
 
virtual void threadDidStart ()
 
virtual void threadIsStopping (const AbstractLocker &)
 
- Protected Member Functions inherited from WTF::ThreadSafeRefCounted< AutomaticThread >
 ThreadSafeRefCounted ()=default
 
 ThreadSafeRefCounted ()=default
 
 ThreadSafeRefCounted ()=default
 
- Protected Member Functions inherited from WTF::ThreadSafeRefCountedBase
bool derefBase () const
 
bool derefBase () const
 
bool derefBase () const
 

Friends

class AutomaticThreadCondition
 

Member Enumeration Documentation

◆ PollResult [1/3]

Enumerator
Work 
Stop 
Wait 
Work 
Stop 
Wait 
Work 
Stop 
Wait 

◆ PollResult [2/3]

Enumerator
Work 
Stop 
Wait 
Work 
Stop 
Wait 
Work 
Stop 
Wait 

◆ PollResult [3/3]

Enumerator
Work 
Stop 
Wait 
Work 
Stop 
Wait 
Work 
Stop 
Wait 

◆ WorkResult [1/3]

Enumerator
Continue 
Stop 
Continue 
Stop 
Continue 
Stop 

◆ WorkResult [2/3]

Enumerator
Continue 
Stop 
Continue 
Stop 
Continue 
Stop 

◆ WorkResult [3/3]

Enumerator
Continue 
Stop 
Continue 
Stop 
Continue 
Stop 

Constructor & Destructor Documentation

◆ ~AutomaticThread() [1/3]

AutomaticThread::~AutomaticThread ( )
virtual

◆ AutomaticThread() [1/3]

AutomaticThread::AutomaticThread ( const AbstractLocker locker,
Box< Lock lock,
RefPtr< AutomaticThreadCondition condition 
)
protected

◆ ~AutomaticThread() [2/3]

virtual WTF::AutomaticThread::~AutomaticThread ( )
virtual

◆ AutomaticThread() [2/3]

WTF::AutomaticThread::AutomaticThread ( const AbstractLocker ,
Box< Lock ,
RefPtr< AutomaticThreadCondition  
)
protected

◆ ~AutomaticThread() [3/3]

virtual WTF::AutomaticThread::~AutomaticThread ( )
virtual

◆ AutomaticThread() [3/3]

WTF::AutomaticThread::AutomaticThread ( const AbstractLocker ,
Box< Lock ,
RefPtr< AutomaticThreadCondition  
)
protected

Member Function Documentation

◆ hasUnderlyingThread() [1/3]

bool WTF::AutomaticThread::hasUnderlyingThread ( const AbstractLocker ) const
inline

◆ hasUnderlyingThread() [2/3]

bool WTF::AutomaticThread::hasUnderlyingThread ( const AbstractLocker ) const
inline

◆ hasUnderlyingThread() [3/3]

bool WTF::AutomaticThread::hasUnderlyingThread ( const AbstractLocker ) const
inline

◆ isWaiting() [1/3]

bool WTF::AutomaticThread::isWaiting ( const AbstractLocker )

◆ isWaiting() [2/3]

bool AutomaticThread::isWaiting ( const AbstractLocker locker)

◆ isWaiting() [3/3]

bool WTF::AutomaticThread::isWaiting ( const AbstractLocker )

◆ join() [1/3]

void AutomaticThread::join ( )

◆ join() [2/3]

void WTF::AutomaticThread::join ( )

◆ join() [3/3]

void WTF::AutomaticThread::join ( )

◆ notify() [1/3]

bool AutomaticThread::notify ( const AbstractLocker locker)

◆ notify() [2/3]

bool WTF::AutomaticThread::notify ( const AbstractLocker )

◆ notify() [3/3]

bool WTF::AutomaticThread::notify ( const AbstractLocker )

◆ poll() [1/3]

virtual PollResult WTF::AutomaticThread::poll ( const AbstractLocker )
protectedpure virtual

◆ poll() [2/3]

virtual PollResult WTF::AutomaticThread::poll ( const AbstractLocker )
protectedpure virtual

◆ poll() [3/3]

virtual PollResult WTF::AutomaticThread::poll ( const AbstractLocker )
protectedpure virtual

◆ threadDidStart() [1/3]

virtual void WTF::AutomaticThread::threadDidStart ( )
protectedvirtual

◆ threadDidStart() [2/3]

void AutomaticThread::threadDidStart ( )
protectedvirtual

◆ threadDidStart() [3/3]

virtual void WTF::AutomaticThread::threadDidStart ( )
protectedvirtual

◆ threadIsStopping() [1/3]

virtual void WTF::AutomaticThread::threadIsStopping ( const AbstractLocker )
protectedvirtual

◆ threadIsStopping() [2/3]

virtual void WTF::AutomaticThread::threadIsStopping ( const AbstractLocker )
protectedvirtual

◆ threadIsStopping() [3/3]

void AutomaticThread::threadIsStopping ( const AbstractLocker )
protectedvirtual

◆ tryStop() [1/3]

bool WTF::AutomaticThread::tryStop ( const AbstractLocker )

◆ tryStop() [2/3]

bool AutomaticThread::tryStop ( const AbstractLocker )

◆ tryStop() [3/3]

bool WTF::AutomaticThread::tryStop ( const AbstractLocker )

◆ work() [1/3]

virtual WorkResult WTF::AutomaticThread::work ( )
protectedpure virtual

◆ work() [2/3]

virtual WorkResult WTF::AutomaticThread::work ( )
protectedpure virtual

◆ work() [3/3]

virtual WorkResult WTF::AutomaticThread::work ( )
protectedpure virtual

Friends And Related Function Documentation

◆ AutomaticThreadCondition


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