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

#include <i_task.hpp>

Inheritance diagram for neolib::i_task:
neolib::i_async_task neolib::task< Base > neolib::reference_counted< i_async_task > neolib::function_task< T > neolib::task< reference_counted< i_async_task > > neolib::async_task neogfx::async_task neogfx::async_thread neogfx::app_thread

Public Member Functions

virtual ~i_task ()=default
 
virtual const std::string & name () const =0
 
virtual void run (yield_type aYieldType=yield_type::NoYield)=0
 
virtual bool do_work (yield_type aYieldType=yield_type::NoYield)=0
 
virtual void cancel ()=0
 
virtual bool cancelled () const =0
 

Detailed Description

Definition at line 44 of file i_task.hpp.

Constructor & Destructor Documentation

◆ ~i_task()

virtual neolib::i_task::~i_task ( )
virtualdefault

Member Function Documentation

◆ cancel()

virtual void neolib::i_task::cancel ( )
pure virtual

◆ cancelled()

virtual bool neolib::i_task::cancelled ( ) const
pure virtual

◆ do_work()

virtual bool neolib::i_task::do_work ( yield_type  aYieldType = yield_type::NoYield)
pure virtual

◆ name()

virtual const std::string & neolib::i_task::name ( ) const
pure virtual

◆ run()


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