14 #ifndef CYCLEDATAREADER_H 15 #define CYCLEDATAREADER_H 34 template<
class CycleDataType>
41 Thread *current_thread = Thread::get_current_thread());
48 INLINE
operator const CycleDataType * ()
const;
49 INLINE
const CycleDataType *
p()
const;
58 const CycleDataType *_pointer;
59 CycleDataType *_write_pointer;
60 #else // !DO_PIPELINING 62 const CycleDataType *_pointer;
63 #endif // DO_PIPELINING const CycleDataType * p() const
This allows the CycleDataReader to be passed to any function that expects a const CycleDataType point...
This class maintains different copies of a page of data between stages of the graphics pipeline (or a...
Thread * get_current_thread() const
Returns the Thread pointer of the currently-executing thread, as passed to the constructor of this ob...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This template class calls PipelineCycler::read_unlocked(), and then provides a transparent read-only ...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
A thread; that is, a lightweight process.
const CycleDataType * operator ->() const
This provides an indirect member access to the actual CycleData data.