Mantid
Loading...
Searching...
No Matches
Framework
PythonInterface
core
inc
MantidPythonInterface
core
ReleaseGlobalInterpreterLock.h
Go to the documentation of this file.
1
// Mantid Repository : https://github.com/mantidproject/mantid
2
//
3
// Copyright © 2018 ISIS Rutherford Appleton Laboratory UKRI,
4
// NScD Oak Ridge National Laboratory, European Spallation Source,
5
// Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
6
// SPDX - License - Identifier: GPL - 3.0 +
7
#pragma once
8
9
#include "
MantidPythonInterface/core/DllConfig.h
"
10
#include <boost/python/detail/wrap_python.hpp>
11
12
namespace
Mantid
{
13
namespace
PythonInterface {
14
20
class
MANTID_PYTHONINTERFACE_CORE_DLL
ReleaseGlobalInterpreterLock
{
21
public
:
23
ReleaseGlobalInterpreterLock
();
25
~ReleaseGlobalInterpreterLock
();
26
27
private
:
28
Py_tracefunc
m_tracefunc
;
29
PyObject *
m_tracearg
;
30
PyThreadState *
m_saved
;
31
};
32
33
}
// namespace PythonInterface
34
}
// namespace Mantid
Mantid::PythonInterface::ReleaseGlobalInterpreterLock
Defines a structure for releasing the Python GIL using the RAII pattern.
Definition:
ReleaseGlobalInterpreterLock.h:20
Mantid::PythonInterface::ReleaseGlobalInterpreterLock::m_saved
PyThreadState * m_saved
Definition:
ReleaseGlobalInterpreterLock.h:30
Mantid::PythonInterface::ReleaseGlobalInterpreterLock::m_tracefunc
Py_tracefunc m_tracefunc
Definition:
ReleaseGlobalInterpreterLock.h:28
Mantid::PythonInterface::ReleaseGlobalInterpreterLock::m_tracearg
PyObject * m_tracearg
Definition:
ReleaseGlobalInterpreterLock.h:29
DllConfig.h
MANTID_PYTHONINTERFACE_CORE_DLL
#define MANTID_PYTHONINTERFACE_CORE_DLL
Definition:
DllConfig.h:17
Mantid
Helper class which provides the Collimation Length for SANS instruments.
Definition:
AbsorptionCorrection.h:18
Generated on Tue Jan 3 2023 11:57:58 for Mantid by
1.9.5