switch ReferenceCount derivation

This commit is contained in:
David Rose 2002-03-08 01:48:14 +00:00
parent 09f8949ff4
commit 456a0aca5e
1 changed files with 16 additions and 1 deletions

View File

@ -30,7 +30,22 @@
// the data structures that are important to protect
// between stages of a pipeline. See PipelineCycler.
////////////////////////////////////////////////////////////////////
class EXPCL_PANDA CycleData : public ReferenceCount {
#ifdef DO_PIPELINING
// If we are compiling in pipelining support, we maintain a pointer to
// a CycleData object in each containing class, instead of the object
// itself. Thus, it should be a ReferenceCount object.
class EXPCL_PANDA CycleData : public ReferenceCount
#else // !DO_PIPELINING
// If we are *not* compiling in pipelining support, the CycleData
// object is stored directly within its containing classes, and hence
// should not be a ReferenceCount object.
class EXPCL_PANDA CycleData
#endif // DO_PIPELINING
{
public:
INLINE CycleData();
virtual ~CycleData();