Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
pybind11
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
pybind11
Commits
b2c4ff60
Commit
b2c4ff60
authored
Jul 15, 2019
by
Wenzel Jakob
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
renamed local gil_scoped_acquire to gil_scoped_acquire_local to avoid ambiguity
parent
b60fd233
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
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