14 #ifndef CYCLEDATALOCKEDREADER_H 15 #define CYCLEDATALOCKEDREADER_H 39 template<
class CycleDataType>
46 Thread *current_thread = Thread::get_current_thread());
56 INLINE
operator const CycleDataType * ()
const;
66 const CycleDataType *_pointer;
67 CycleDataType *_write_pointer;
68 #else // !DO_PIPELINING 70 const CycleDataType *_pointer;
71 #endif // DO_PIPELINING PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This class maintains different copies of a page of data between stages of the graphics pipeline (or a...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
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...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This template class calls PipelineCycler::read() in the constructor and PipelineCycler::release_read(...
const CycleDataType * operator ->() const
This provides an indirect member access to the actual CycleData data.
A thread; that is, a lightweight process.