AUI Framework  develop
Cross-platform base for C++ UI apps
Loading...
Searching...
No Matches
AAbstractThread Class Reference

Represents an abstract thread which might be not created with AThread. More...

#include <AUI/Thread/AThread.h>

Detailed Description

Not all threads are created through AThread - these are interfaced with AAbstractThread.

See also
AThread::current()

Member Function Documentation

> All members, including inherited

◆ getCurrentEventLoop()

IEventLoop * AAbstractThread::getCurrentEventLoop ( ) const
inline
Returns
current event loop for this thread

◆ getId()

id AAbstractThread::getId ( ) const
Returns
thread ID

◆ interrupt()

virtual void AAbstractThread::interrupt ( )
virtual

Raises the interruption flag of the thread. In order to check whether thread interrupted use AThread::interruptionPoint() or AAbstractThread::isInterrupted().

Reimplemented in AThread.

◆ isInterrupted()

virtual bool AAbstractThread::isInterrupted ( )
virtual
Returns
true if interrupt requested for this thread.

Reimplemented in AThread.

◆ operator*()

template<class Callable>
void AAbstractThread::operator* ( Callable fun)
inline
Template Parameters
Callablecallable
Parameters
funcallable function

◆ operator<<()

template<class Callable>
void AAbstractThread::operator<< ( Callable fun)
inline
Template Parameters
Callablecallable
Parameters
funcallable function

◆ resetInterruptFlag()

virtual void AAbstractThread::resetInterruptFlag ( )
virtual

Reimplemented in AThread.