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
a491af61
Commit
a491af61
authored
Feb 04, 2023
by
Aaron Gokaslan
Committed by
Henry Schreiner
Feb 24, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugfix: delete proper ctors in gil.h (#4490)
parent
993eb2b6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
include/pybind11/gil.h
+4
-4
No files found.
include/pybind11/gil.h
View file @
a491af61
...
...
@@ -152,8 +152,8 @@ public:
}
}
gil_scoped_release
(
const
gil_scoped_
acquir
e
&
)
=
delete
;
gil_scoped_release
&
operator
=
(
const
gil_scoped_
acquir
e
&
)
=
delete
;
gil_scoped_release
(
const
gil_scoped_
releas
e
&
)
=
delete
;
gil_scoped_release
&
operator
=
(
const
gil_scoped_
releas
e
&
)
=
delete
;
/// This method will disable the PyThreadState_DeleteCurrent call and the
/// GIL won't be acquired. This method should be used if the interpreter
...
...
@@ -203,7 +203,7 @@ class gil_scoped_release {
public
:
gil_scoped_release
()
:
state
{
PyEval_SaveThread
()}
{}
gil_scoped_release
(
const
gil_scoped_release
&
)
=
delete
;
gil_scoped_release
&
operator
=
(
const
gil_scoped_
acquir
e
&
)
=
delete
;
gil_scoped_release
&
operator
=
(
const
gil_scoped_
releas
e
&
)
=
delete
;
~
gil_scoped_release
()
{
PyEval_RestoreThread
(
state
);
}
void
disarm
()
{}
};
...
...
@@ -230,7 +230,7 @@ public:
(
void
)
(
this
!=
(
this
+
1
));
}
gil_scoped_release
(
const
gil_scoped_release
&
)
=
delete
;
gil_scoped_release
&
operator
=
(
const
gil_scoped_
acquir
e
&
)
=
delete
;
gil_scoped_release
&
operator
=
(
const
gil_scoped_
releas
e
&
)
=
delete
;
void
disarm
()
{}
};
...
...
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