Panda3D
 All Classes Functions Variables Enumerations
pipelineCyclerBase.h
1 // Filename: pipelineCyclerBase.h
2 // Created by: drose (21Feb02)
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 PIPELINECYCLERBASE_H
16 #define PIPELINECYCLERBASE_H
17 
18 #include "pandabase.h"
19 #include "selectThreadImpl.h" // for THREADED_PIPELINE definition
20 
21 #if defined(THREADED_PIPELINE)
22 
23 // With DO_PIPELINING and threads available, we want the true cycler
24 // implementation.
25 #include "pipelineCyclerTrueImpl.h"
26 typedef PipelineCyclerTrueImpl PipelineCyclerBase;
27 
28 #elif defined(DO_PIPELINING)
29 
30 // With DO_PIPELINING but no threads available, we want the dummy,
31 // self-validating cycler implementation.
32 #include "pipelineCyclerDummyImpl.h"
33 typedef PipelineCyclerDummyImpl PipelineCyclerBase;
34 
35 #else // !DO_PIPELINING
36 
37 // Without DO_PIPELINING, we only want the trivial, do-nothing
38 // implementation.
39 #include "pipelineCyclerTrivialImpl.h"
41 
42 #endif // DO_PIPELINING
43 
44 #endif
45 
This is the trivial, non-threaded implementation of PipelineCyclerBase.