14#ifndef CYCLEDATAWRITER_H
15#define CYCLEDATAWRITER_H
33template<
class CycleDataType>
34class CycleDataWriter {
44 CycleDataType *locked_cdata,
46 INLINE CycleDataWriter(
const CycleDataWriter<CycleDataType> ©);
47 INLINE CycleDataWriter(CycleDataWriter<CycleDataType> &&from)
noexcept;
52 INLINE
void operator = (CycleDataWriter<CycleDataType> &&from)
noexcept;
53 INLINE
void operator = (
const CycleDataWriter<CycleDataType> ©);
55 INLINE ~CycleDataWriter();
60 INLINE
operator CycleDataType * ();
69 CycleDataType *_pointer;
72 CycleDataType *_pointer;
This template class calls PipelineCycler::read() in the constructor and PipelineCycler::release_read(...
CycleDataType * operator->()
This provides an indirect member access to the actual CycleData data.
CycleDataWriter(PipelineCycler< CycleDataType > &cycler, CycleDataLockedReader< CycleDataType > &take_from)
This flavor of the constructor elevates the pointer from the CycleDataLockedReader from a read to a w...
CycleDataWriter(PipelineCycler< CycleDataType > &cycler, CycleDataLockedReader< CycleDataType > &take_from, bool force_to_0)
This flavor of the constructor elevates the pointer from the CycleDataLockedReader from a read to a w...
Thread * get_current_thread() const
Returns the Thread pointer of the currently-executing thread, as passed to the constructor of this ob...
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.
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.