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

#include <GStage.h>

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

Private Member Functions

 GStage ()=default
 
GStagesetThreshold (CInt threshold)
 
CVoid waiting ()
 

Private Attributes

CInt threshold_ { 0 }
 
CInt cur_value_ { 0 }
 
UCvMutex locker_
 
std::mutex waiting_mutex_
 

Friends

class GStageManager
 
class CAllocator
 

Additional Inherited Members

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

Constructor & Destructor Documentation

◆ GStage()

GStage::GStage ( )
privatedefault

Member Function Documentation

◆ setThreshold()

GStage* GStage::setThreshold ( CInt  threshold)
inlineprivate

设置阈值信息

Parameters
threshold
Returns

◆ waiting()

CVoid GStage::waiting ( )
inlineprivate

进入等待区域

Returns

Friends And Related Function Documentation

◆ CAllocator

friend class CAllocator
friend

◆ GStageManager

friend class GStageManager
friend

Member Data Documentation

◆ cur_value_

CInt GStage::cur_value_ { 0 }
private

◆ locker_

UCvMutex GStage::locker_
private

◆ threshold_

CInt GStage::threshold_ { 0 }
private

◆ waiting_mutex_

std::mutex GStage::waiting_mutex_
private

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