Panda3D
|
00001 // Filename: typeRegistry.I 00002 // Created by: drose (06Aug01) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) Carnegie Mellon University. All rights reserved. 00008 // 00009 // All use of this software is subject to the terms of the revised BSD 00010 // license. You should have received a copy of this license along 00011 // with this source code in a file named "LICENSE." 00012 // 00013 //////////////////////////////////////////////////////////////////// 00014 00015 00016 //////////////////////////////////////////////////////////////////// 00017 // Function: TypeRegistry::freshen_derivations 00018 // Access: Private 00019 // Description: Rebuilds the derivation data structures after some 00020 // derivation relationship has been modified, so that 00021 // class relationships can quickly be determined. 00022 //////////////////////////////////////////////////////////////////// 00023 INLINE void TypeRegistry:: 00024 freshen_derivations() { 00025 if (!_derivations_fresh) { 00026 rebuild_derivations(); 00027 _derivations_fresh = true; 00028 } 00029 } 00030 00031 //////////////////////////////////////////////////////////////////// 00032 // Function: TypeRegistry::init_lock 00033 // Access: Private, Static 00034 // Description: Ensures the lock pointer has been allocated. 00035 //////////////////////////////////////////////////////////////////// 00036 INLINE void TypeRegistry:: 00037 init_lock() { 00038 if (_lock == (MutexImpl *)NULL) { 00039 _lock = new MutexImpl; 00040 } 00041 }