Alexandria
2.25.0
SDC-CH common library for the Euclid project
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
Pyston
Pyston
GIL.h
Go to the documentation of this file.
1
19
#ifndef PYSTON_GIL_H
20
#define PYSTON_GIL_H
21
22
#include <Python.h>
23
24
namespace
Pyston {
25
29
class
GILLocker
{
30
public
:
31
GILLocker
();
32
33
~GILLocker
();
34
35
static
size_t
getLockCount
();
36
37
protected
:
38
PyGILState_STATE
m_state
;
39
friend
class
GILReleaser
;
40
};
41
45
class
GILReleaser
{
46
public
:
47
explicit
GILReleaser
(PyGILState_STATE& state);
48
49
explicit
GILReleaser
(
GILLocker
&);
50
51
~GILReleaser
();
52
53
protected
:
54
PyGILState_STATE&
m_state
;
55
};
56
57
}
// end of namespace Pyston
58
59
#endif // PYSTON_GIL_H
Pyston::GILReleaser
Definition:
GIL.h:45
Pyston::GILReleaser::GILReleaser
GILReleaser(PyGILState_STATE &state)
Definition:
GIL.cpp:38
Pyston::GILLocker::getLockCount
static size_t getLockCount()
Definition:
GIL.cpp:34
Pyston::GILLocker
Definition:
GIL.h:29
Pyston::GILReleaser::~GILReleaser
~GILReleaser()
Definition:
GIL.cpp:46
Pyston::GILLocker::~GILLocker
~GILLocker()
Definition:
GIL.cpp:30
Pyston::GILLocker::GILLocker
GILLocker()
Definition:
GIL.cpp:25
Pyston::GILLocker::m_state
PyGILState_STATE m_state
Definition:
GIL.h:38
Pyston::GILReleaser::m_state
PyGILState_STATE & m_state
Definition:
GIL.h:54
Generated by
1.8.5