You.i Engine
CYITask< ResultType[]> Class Template Reference

Detailed Description

template<typename ResultType>
class CYITask< ResultType[]>

Use of array types in CYITask objects is not supported. Use a CYITask that returns a std::unique_ptr instead.

#include <thread/YiTask.h>

Inheritance diagram for CYITask< ResultType[]>:

Public Member Functions

 CYITask ()=delete
 
- Public Member Functions inherited from CYITaskBase
virtual ~CYITaskBase ()
 
State GetState () const
 
bool MarkPendingExecution ()
 
void RequestCancellation ()
 
bool IsCancellationRequested () const
 
void SetCancellationRequestSucceeded ()
 
bool IsCancellationRequestSucceeded () const
 
bool Execute ()
 

Additional Inherited Members

- Public Types inherited from CYITaskBase
enum  State : uint8_t {
  State::New,
  State::PendingExecution,
  State::Executing,
  State::Completed,
  State::Cancelled
}
 
- Protected Member Functions inherited from CYITaskBase
virtual void RunAndAssignResult ()=0
 Executes this task and assigns its result to the associated future object, if it exists. More...
 

Constructor & Destructor Documentation

◆ CYITask()

template<typename ResultType >
CYITask< ResultType[]>::CYITask ( )
delete

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