agora::RefCounter类 参考
构造及析构函数说明
RefCounter() [1/2]
|
RefCounter() [2/2]
|
成员函数说明
IncRef()
|
DecRef()
|
Returns true if this was the last reference, and the resource protected by the reference counter can be deleted.
HasOneRef()
|
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 resource protected by the reference counter, knowing that it has exclusive access.
类成员变量说明
private
ref_count_
|