SHOGUN  6.0.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules
List of all members | Public Member Functions
RefCount Class Reference

Detailed Description

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

Definition at line 13 of file RefCount.h.

Public Member Functions

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

Constructor & Destructor Documentation

RefCount ( int32_t  ref_start = 0)

Constructor

Parameters
ref_startstarting value for counter

Definition at line 20 of file RefCount.h.

Member Function Documentation

SG_FORCED_INLINE int32_t ref ( )

Increase ref count

Returns
the new reference count

Definition at line 26 of file RefCount.h.

SG_FORCED_INLINE int32_t ref_count ( )

Get the reference count

Returns
the reference count

Definition at line 44 of file RefCount.h.

SG_FORCED_INLINE int32_t unref ( )

Decrease reference count

Returns
the new reference count

Definition at line 35 of file RefCount.h.


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

SHOGUN Machine Learning Toolbox - Documentation