Panda3D

cyclerHolder.I
Go to the documentation of this file.
1 /**
2 * PANDA 3D SOFTWARE
3 * Copyright (c) Carnegie Mellon University. All rights reserved.
4 *
5 * All use of this software is subject to the terms of the revised BSD
6 * license. You should have received a copy of this license along
7 * with this source code in a file named "LICENSE."
8 *
9 * @file cyclerHolder.I
10 * @author drose
11 * @date 2006-02-09
12 */
13
14 /**
15 *
16 */
17 INLINE CyclerHolder::
18 CyclerHolder(PipelineCyclerBase &cycler) {
19 #ifdef DO_PIPELINING
20 _cycler = &cycler;
21 _cycler->acquire();
22 #endif
23 }
24
25 /**
26 *
27 */
28 INLINE CyclerHolder::
29 ~CyclerHolder() {
30 #ifdef DO_PIPELINING
31 _cycler->release();
32 #endif
33 }
PipelineCyclerTrivialImpl
This is the trivial, non-threaded implementation of PipelineCyclerBase.
Definition: pipelineCyclerTrivialImpl.h:41
PipelineCyclerTrivialImpl::acquire
void acquire(Thread *current_thread=nullptr)
Grabs an overall lock on the cycler.
Definition: pipelineCyclerTrivialImpl.I:38