Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
Related Functions
:
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
v
w
x
z
Files
File List
File Members
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
v
x
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
GitLab
LXR
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
Control
RootUtils
RootUtils
PyAthenaGILStateEnsure.h
Go to the documentation of this file.
1
3
/*
4
Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
5
*/
6
7
// PyAthenaGILStateEnsure.h
8
// Header file for convenience class to ensure GIL
9
// Author: Wim Lavrijsen <WLavrijsen@lbl.gov>
11
#ifndef ROOTUTILS_PYGILSTATEENSURE_H
12
#define ROOTUTILS_PYGILSTATEENSURE_H
13
14
// Python includes
15
#include "Python.h"
16
17
namespace
RootUtils
{
18
19
class
PyGILStateEnsure
20
{
21
public
:
22
PyGILStateEnsure
();
23
PyGILStateEnsure
(
const
PyGILStateEnsure
& ) =
delete
;
24
PyGILStateEnsure
&
operator=
(
const
PyGILStateEnsure
& ) =
delete
;
25
~PyGILStateEnsure
();
26
27
private
:
28
PyGILState_STATE
m_gstate
;
29
};
30
34
35
inline
PyGILStateEnsure::PyGILStateEnsure
()
36
: m_gstate (PyGILState_Ensure())
37
{
38
}
39
40
inline
PyGILStateEnsure::~PyGILStateEnsure
()
41
{
42
PyGILState_Release(
m_gstate
);
43
}
44
45
}
//> namespace RootUtils
46
47
#endif //> ROOTUTILS_PYATHENA_PYGILSTATEENSURE_H
RootUtils::PyGILStateEnsure::operator=
PyGILStateEnsure & operator=(const PyGILStateEnsure &)=delete
RootUtils
Definition:
ILogger.h:20
RootUtils::PyGILStateEnsure
Definition:
PyAthenaGILStateEnsure.h:20
RootUtils::PyGILStateEnsure::PyGILStateEnsure
PyGILStateEnsure(const PyGILStateEnsure &)=delete
RootUtils::PyGILStateEnsure::PyGILStateEnsure
PyGILStateEnsure()
Inline methods:
Definition:
PyAthenaGILStateEnsure.h:35
RootUtils::PyGILStateEnsure::~PyGILStateEnsure
~PyGILStateEnsure()
Definition:
PyAthenaGILStateEnsure.h:40
RootUtils::PyGILStateEnsure::m_gstate
PyGILState_STATE m_gstate
Definition:
PyAthenaGILStateEnsure.h:28
Generated on Wed Apr 23 2025 21:17:32 for ATLAS Offline Software by
1.8.18