Panda3D
panda
src
pipeline
lightReMutexHolder.h
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 lightReMutexHolder.h
10
* @author drose
11
* @date 2008-10-08
12
*/
13
14
#ifndef LIGHTREMUTEXHOLDER_H
15
#define LIGHTREMUTEXHOLDER_H
16
17
#include "
pandabase.h
"
18
#include "
lightReMutex.h
"
19
20
class
Thread
;
21
22
/**
23
* Similar to MutexHolder, but for a light reentrant mutex.
24
*/
25
class
EXPCL_PANDA_PIPELINE
LightReMutexHolder
{
26
public
:
27
INLINE
LightReMutexHolder
(
const
LightReMutex
&mutex);
28
INLINE
LightReMutexHolder
(
const
LightReMutex
&mutex,
Thread
*current_thread);
29
INLINE
LightReMutexHolder
(
LightReMutex
*&mutex);
30
LightReMutexHolder
(
const
LightReMutexHolder
©) =
delete
;
31
INLINE ~
LightReMutexHolder
();
32
33
LightReMutexHolder
&operator = (
const
LightReMutexHolder
©) =
delete
;
34
35
private
:
36
#if defined(HAVE_THREADS) || defined(DEBUG_THREADS)
37
const
LightReMutex
*_mutex;
38
#endif
39
};
40
41
#include "
lightReMutexHolder.I
"
42
43
#endif
pandabase.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
LightReMutexHolder
Similar to MutexHolder, but for a light reentrant mutex.
Definition:
lightReMutexHolder.h:25
lightReMutexHolder.I
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
LightReMutex
A lightweight reentrant mutex.
Definition:
lightReMutex.h:32
Thread
A thread; that is, a lightweight process.
Definition:
thread.h:46
lightReMutex.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
Generated on Sun Dec 27 2020 13:23:14 for Panda3D by
1.8.20