Panda3D
 All Classes Functions Variables Enumerations
cyclerHolder.h
1 // Filename: cyclerHolder.h
2 // Created by: drose (09Feb06)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 #ifndef CYCLERHOLDER_H
16 #define CYCLERHOLDER_H
17 
18 #include "pandabase.h"
19 #include "pipelineCyclerBase.h"
20 
21 ////////////////////////////////////////////////////////////////////
22 // Class : CyclerHolder
23 // Description : A lightweight C++ object whose constructor calls
24 // acquire() and whose destructor calls release() on a
25 // PipelineCyclerBase object. This is similar to a
26 // MutexHolder.
27 ////////////////////////////////////////////////////////////////////
28 class EXPCL_PANDA_PIPELINE CyclerHolder {
29 public:
30  INLINE CyclerHolder(PipelineCyclerBase &cycler);
31  INLINE ~CyclerHolder();
32 private:
33  INLINE CyclerHolder(const CyclerHolder &copy);
34  INLINE void operator = (const CyclerHolder &copy);
35 
36 private:
37 #ifdef DO_PIPELINING
38  PipelineCyclerBase *_cycler;
39 #endif
40 };
41 
42 #include "cyclerHolder.I"
43 
44 #endif
A lightweight C++ object whose constructor calls acquire() and whose destructor calls release() on a ...
Definition: cyclerHolder.h:28
This is the trivial, non-threaded implementation of PipelineCyclerBase.