neoGFX
Cross-platform C++ app/game engine
Loading...
Searching...
No Matches
neolib::i_thread Class Referenceabstract

#include <i_thread.hpp>

Inheritance diagram for neolib::i_thread:
neolib::thread neolib::async_thread neogfx::async_thread neogfx::app_thread

Classes

struct  nothing_to_do
 

Public Member Functions

virtual ~i_thread ()=default
 
virtual const std::string & name () const noexcept=0
 
virtual thread_state state () const noexcept=0
 
virtual bool finished () const noexcept=0
 
virtual void abort (bool aWait=true)=0
 

Protected Member Functions

virtual void exec_preamble ()=0
 
virtual void exec (yield_type aYieldType=yield_type::NoYield)=0
 

Detailed Description

Definition at line 60 of file i_thread.hpp.

Constructor & Destructor Documentation

◆ ~i_thread()

virtual neolib::i_thread::~i_thread ( )
virtualdefault

Member Function Documentation

◆ abort()

virtual void neolib::i_thread::abort ( bool  aWait = true)
pure virtual

Implemented in neolib::thread.

◆ exec()

virtual void neolib::i_thread::exec ( yield_type  aYieldType = yield_type::NoYield)
protectedpure virtual

Implemented in neolib::async_thread.

◆ exec_preamble()

virtual void neolib::i_thread::exec_preamble ( )
protectedpure virtual

Implemented in neolib::async_thread.

◆ finished()

virtual bool neolib::i_thread::finished ( ) const
pure virtualnoexcept

Implemented in neolib::thread.

◆ name()

virtual const std::string & neolib::i_thread::name ( ) const
pure virtualnoexcept

Implemented in neolib::thread.

◆ state()

virtual thread_state neolib::i_thread::state ( ) const
pure virtualnoexcept

Implemented in neolib::thread.


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