15 #ifndef CYCLEDATALOCKEDREADER_H 16 #define CYCLEDATALOCKEDREADER_H 18 #include "pandabase.h" 20 #include "cycleData.h" 21 #include "pipelineCycler.h" 46 template<
class CycleDataType>
57 INLINE ~CycleDataLockedReader();
60 INLINE
operator const CycleDataType * ()
const;
70 const CycleDataType *_pointer;
71 CycleDataType *_write_pointer;
72 #else // !DO_PIPELINING 74 const CycleDataType *_pointer;
75 #endif // DO_PIPELINING 79 #include "cycleDataLockedReader.I" This class maintains different copies of a page of data between stages of the graphics pipeline (or a...
static Thread * get_current_thread()
Returns a pointer to the currently-executing Thread object.
const CycleDataType * operator->() const
This provides an indirect member access to the actual CycleData data.
const CycleDataType * take_pointer()
This is intended to be called only from CycleDataWriter when it elevates the pointer from read to wri...
Thread * get_current_thread() const
Returns the Thread pointer of the currently-executing thread, as passed to the constructor of this ob...
This template class calls PipelineCycler::read() in the constructor and PipelineCycler::release_read(...
A thread; that is, a lightweight process.