14#ifndef CYCLEDATAREADER_H
15#define CYCLEDATAREADER_H
34template<
class CycleDataType>
48 INLINE
operator const CycleDataType * ()
const;
49 INLINE
const CycleDataType *
p()
const;
58 const CycleDataType *_pointer;
59 CycleDataType *_write_pointer;
62 const CycleDataType *_pointer;
This template class calls PipelineCycler::read_unlocked(), and then provides a transparent read-only ...
Thread * get_current_thread() const
Returns the Thread pointer of the currently-executing thread, as passed to the constructor of this ob...
const CycleDataType * operator->() const
This provides an indirect member access to the actual CycleData data.
const CycleDataType * p() const
This allows the CycleDataReader to be passed to any function that expects a const CycleDataType point...
A thread; that is, a lightweight process.
get_current_thread
Returns a pointer to the currently-executing Thread object.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
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.