Panda3D
|
00001 // Filename: pipelineCyclerBase.h 00002 // Created by: drose (21Feb02) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) Carnegie Mellon University. All rights reserved. 00008 // 00009 // All use of this software is subject to the terms of the revised BSD 00010 // license. You should have received a copy of this license along 00011 // with this source code in a file named "LICENSE." 00012 // 00013 //////////////////////////////////////////////////////////////////// 00014 00015 #ifndef PIPELINECYCLERBASE_H 00016 #define PIPELINECYCLERBASE_H 00017 00018 #include "pandabase.h" 00019 #include "selectThreadImpl.h" // for THREADED_PIPELINE definition 00020 00021 #if defined(THREADED_PIPELINE) 00022 00023 // With DO_PIPELINING and threads available, we want the true cycler 00024 // implementation. 00025 #include "pipelineCyclerTrueImpl.h" 00026 typedef PipelineCyclerTrueImpl PipelineCyclerBase; 00027 00028 #elif defined(DO_PIPELINING) 00029 00030 // With DO_PIPELINING but no threads available, we want the dummy, 00031 // self-validating cycler implementation. 00032 #include "pipelineCyclerDummyImpl.h" 00033 typedef PipelineCyclerDummyImpl PipelineCyclerBase; 00034 00035 #else // !DO_PIPELINING 00036 00037 // Without DO_PIPELINING, we only want the trivial, do-nothing 00038 // implementation. 00039 #include "pipelineCyclerTrivialImpl.h" 00040 typedef PipelineCyclerTrivialImpl PipelineCyclerBase; 00041 00042 #endif // DO_PIPELINING 00043 00044 #endif 00045