agora::RefCountedObject< T > 模板类 参考
template<class T>
class agora::RefCountedObject< T >
Agora sample code for wrapping a class that needs to inherit from RefCountInterface in order to be held by agora::agora_refptr Usage: agora::agora_refptr<TypeName> ptr = new RefCountedObject<TypeName>(Arg1, Arg2, ...);
构造及析构函数说明
RefCountedObject() [1/5]
template<class T >
|
RefCountedObject() [2/5]
RefCountedObject() [3/5]
template<class T >
|
RefCountedObject() [4/5]
template<class T >
template<class P0 , class P1 , class... Args>
|
~RefCountedObject()
template<class T >
|
RefCountedObject() [5/5]
template<class T >
|
成员函数说明
AddRef()
template<class T >
|
Release()
template<class T >
|
HasOneRef()
template<class T >
|
Return whether the reference count is one. If the reference count is used in the conventional way, a reference count of 1 implies that the current thread owns the reference and no other thread shares it. This call performs the test for a reference count of one, and performs the memory barrier needed for the owning thread to act on the object, knowing that it has exclusive access to the object.
operator=()
template<class T >
|
类成员变量说明
mutable
protected
ref_count_
template<class T >
|