SHOGUN  4.1.0
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义  
所有成员列表 | Public 成员函数 | Public 属性
RefCount类 参考

详细描述

brief This class implements a thread-safe counter used for reference counting.

在文件 RefCount.h18 行定义.

Public 成员函数

 RefCount (int32_t ref_start=0)
 
int32_t ref ()
 
int32_t unref ()
 
int32_t ref_count ()
 

Public 属性

int32_t rc
 
CLock lock
 

构造及析构函数说明

RefCount ( int32_t  ref_start = 0)

Constructor

参数
ref_startstarting value for counter

在文件 RefCount.h25 行定义.

成员函数说明

int32_t ref ( )

Increase ref count

返回
the new reference count

在文件 RefCount.cpp5 行定义.

int32_t ref_count ( )

Get the reference count

返回
the reference count

在文件 RefCount.cpp31 行定义.

int32_t unref ( )

Decrease reference count

返回
the new reference count

在文件 RefCount.cpp18 行定义.

类成员变量说明

CLock lock

the lock

在文件 RefCount.h52 行定义.

int32_t rc

reference count

在文件 RefCount.h49 行定义.


该类的文档由以下文件生成:

SHOGUN 机器学习工具包 - 项目文档