mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
lock name, class inheritance
This commit is contained in:
parent
7349221f42
commit
a3585abfec
@ -251,7 +251,7 @@ set_lru_size(size_t lru_size) {
|
||||
INLINE GeomVertexArrayData::CData::
|
||||
CData() :
|
||||
_usage_hint(UH_unspecified),
|
||||
_rw_lock("GeomVertexArrayData::CData::_wl_lock")
|
||||
_rw_lock("GeomVertexArrayData::CData::_rw_lock")
|
||||
{
|
||||
}
|
||||
|
||||
@ -265,7 +265,7 @@ CData(const GeomVertexArrayData::CData ©) :
|
||||
_usage_hint(copy._usage_hint),
|
||||
_buffer(copy._buffer),
|
||||
_modified(copy._modified),
|
||||
_rw_lock("GeomVertexArrayData::CData::_wl_lock")
|
||||
_rw_lock("GeomVertexArrayData::CData::_rw_lock")
|
||||
{
|
||||
}
|
||||
|
||||
@ -303,6 +303,9 @@ GeomVertexArrayDataHandle(const GeomVertexArrayData *object,
|
||||
#ifdef DO_PIPELINING
|
||||
_cdata->ref();
|
||||
#endif // DO_PIPELINING
|
||||
#ifdef DO_MEMORY_USAGE
|
||||
MemoryUsage::update_type(this, get_class_type());
|
||||
#endif
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
|
@ -301,7 +301,9 @@ public:
|
||||
return _type_handle;
|
||||
}
|
||||
static void init_type() {
|
||||
register_type(_type_handle, "GeomVertexArrayDataHandle");
|
||||
ReferenceCount::init_type();
|
||||
register_type(_type_handle, "GeomVertexArrayDataHandle",
|
||||
ReferenceCount::get_class_type());
|
||||
}
|
||||
|
||||
private:
|
||||
|
Loading…
x
Reference in New Issue
Block a user