Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
pybind11
Commits
b2c4ff60
Commit
b2c4ff60
authored
Jul 15, 2019
by
Wenzel Jakob
Browse files
renamed local gil_scoped_acquire to gil_scoped_acquire_local to avoid ambiguity
parent
b60fd233
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
include/pybind11/detail/internals.h
include/pybind11/detail/internals.h
+3
-3
No files found.
include/pybind11/detail/internals.h
View file @
b2c4ff60
...
@@ -173,9 +173,9 @@ PYBIND11_NOINLINE inline internals &get_internals() {
...
@@ -173,9 +173,9 @@ PYBIND11_NOINLINE inline internals &get_internals() {
// Ensure that the GIL is held since we will need to make Python calls.
// Ensure that the GIL is held since we will need to make Python calls.
// Cannot use py::gil_scoped_acquire here since that constructor calls get_internals.
// Cannot use py::gil_scoped_acquire here since that constructor calls get_internals.
struct
gil_scoped_acquire
{
struct
gil_scoped_acquire
_local
{
gil_scoped_acquire
()
:
state
(
PyGILState_Ensure
())
{}
gil_scoped_acquire
_local
()
:
state
(
PyGILState_Ensure
())
{}
~
gil_scoped_acquire
()
{
PyGILState_Release
(
state
);
}
~
gil_scoped_acquire
_local
()
{
PyGILState_Release
(
state
);
}
const
PyGILState_STATE
state
;
const
PyGILState_STATE
state
;
}
gil
;
}
gil
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment