SHOGUN  v3.2.0
所有成员列表 | Public 成员函数 | Public 属性
RefCount类 参考

详细描述

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

在文件 RefCount.h16 行定义.

Public 成员函数

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

Public 属性

int32_t rc
 
CLock lock
 

构造及析构函数说明

§ RefCount()

RefCount ( int32_t  ref_start = 0)

Constructor

参数
ref_startstarting value for counter

在文件 RefCount.h23 行定义.

成员函数说明

§ ref()

int32_t ref ( )

Increase ref count

返回
the new reference count

在文件 RefCount.cpp5 行定义.

§ ref_count()

int32_t ref_count ( )

Get the reference count

返回
the reference count

在文件 RefCount.cpp31 行定义.

§ unref()

int32_t unref ( )

Decrease reference count

返回
the new reference count

在文件 RefCount.cpp18 行定义.

类成员变量说明

§ lock

CLock lock

the lock

在文件 RefCount.h50 行定义.

§ rc

int32_t rc

reference count

在文件 RefCount.h47 行定义.


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

SHOGUN Machine Learning Toolbox - Documentation