Mantid
Loading...
Searching...
No Matches
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
10#include <boost/python/detail/wrap_python.hpp>
11
12namespace Mantid {
13namespace PythonInterface {
14
21public:
26
27private:
28 Py_tracefunc m_tracefunc;
29 PyObject *m_tracearg;
30 PyThreadState *m_saved;
31};
32
33} // namespace PythonInterface
34} // namespace Mantid
Defines a structure for releasing the Python GIL using the RAII pattern.
#define MANTID_PYTHONINTERFACE_CORE_DLL
Definition: DllConfig.h:17
Helper class which provides the Collimation Length for SANS instruments.