29 MutexHolder holder(_lock_mutex);
32 ((CopyOnWriteObject *)
this)->_lock_status = LS_unlocked;
33 ((CopyOnWriteObject *)
this)->_locking_thread =
nullptr;
34 ((CopyOnWriteObject *)
this)->_lock_cvar.notify();
47 MutexHolder holder(_lock_mutex);
50 ((CopyOnWriteObject *)
this)->_lock_status = LS_unlocked;
51 ((CopyOnWriteObject *)
this)->_locking_thread =
nullptr;
52 ((CopyOnWriteObject *)
this)->_lock_cvar.notify();
get_cache_ref_count
Returns the current reference count.
void cache_ref_only() const
Decrements the cache reference count without affecting the normal reference count.
get_ref_count
Returns the current reference count.
virtual bool unref() const
Explicitly decrements the reference count.
TypeHandle is the identifier used to differentiate C++ class types.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.