15 #ifndef THREADSAFEPOINTERTOBASE_H
16 #define THREADSAFEPOINTERTOBASE_H
18 #include "pandabase.h"
19 #include "pointerToVoid.h"
20 #include "referenceCount.h"
22 #include "memoryUsage.h"
23 #include "config_express.h"
24 #include "atomicAdjust.h"
40 INLINE ~ThreadSafePointerToBase();
42 INLINE
void reassign(To *ptr);
45 #ifdef DO_MEMORY_USAGE
46 void update_type(To *ptr);
47 #endif // DO_MEMORY_USAGE
56 void output(ostream &out)
const;
60 INLINE ostream &operator <<(ostream &out, const ThreadSafePointerToBase<T> &pointer) {
65 #include "threadSafePointerToBase.I"
This is the non-template part of the base class for PointerTo and ConstPointerTo. ...
void clear()
A convenient way to set the ThreadSafePointerTo object to NULL.
void output(ostream &out) const
A handy function to output ThreadSafePointerTo's as a hex pointer followed by a reference count...
This is the base class for ThreadSafePointerTo and ThreadSafeConstPointerTo.