CGraph
Private Member Functions | Private Attributes | Friends | List of all members
GSchedule Class Reference

#include <GSchedule.h>

Inheritance diagram for GSchedule:
Inheritance graph
[legend]
Collaboration diagram for GSchedule:
Collaboration graph
[legend]

Private Member Functions

CStatus makeType (UThreadPoolPtr tp)
 
UThreadPoolPtr getThreadPool ()
 
CStatus init () final
 
CStatus run () final
 
CStatus destroy () final
 
 GSchedule ()=default
 
 ~GSchedule () override
 

Private Attributes

UThreadPoolPtr unique_tp_ = nullptr
 
UThreadPoolPtr shared_tp_ = nullptr
 
UThreadPoolConfig config_
 
internal::GScheduleType type_ = internal::GScheduleType::UNIQUE
 

Friends

class GPipeline
 

Additional Inherited Members

- Public Member Functions inherited from CObject
 CObject ()=default
 
virtual ~CObject ()=default
 

Constructor & Destructor Documentation

◆ GSchedule()

GSchedule::GSchedule ( )
explicitprivatedefault

◆ ~GSchedule()

GSchedule::~GSchedule ( )
overrideprivate
Here is the call graph for this function:

Member Function Documentation

◆ destroy()

CStatus GSchedule::destroy ( )
finalprivatevirtual

释放函数

Reimplemented from CObject.

◆ getThreadPool()

UThreadPoolPtr GSchedule::getThreadPool ( )
private

获取线程池信息

Returns

返回一个可用的 pool utp和stp,应该是有且仅有一个为非空的

◆ init()

CGRAPH_NAMESPACE_BEGIN CStatus GSchedule::init ( )
finalprivatevirtual

初始化函数

如果是 unique 的数据,则在这里初始化一下 如果是 shared 的数据,则不做任何操作

Reimplemented from CObject.

Here is the call graph for this function:

◆ makeType()

CStatus GSchedule::makeType ( UThreadPoolPtr  tp)
private

设置调度资源模式

Parameters
tp
Returns

◆ run()

CStatus GSchedule::run ( )
finalprivatevirtual

流程处理函数

Implements CObject.

Friends And Related Function Documentation

◆ GPipeline

friend class GPipeline
friend

Member Data Documentation

◆ config_

UThreadPoolConfig GSchedule::config_
private

◆ shared_tp_

UThreadPoolPtr GSchedule::shared_tp_ = nullptr
private

◆ type_

internal::GScheduleType GSchedule::type_ = internal::GScheduleType::UNIQUE
private

◆ unique_tp_

UThreadPoolPtr GSchedule::unique_tp_ = nullptr
private

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