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
b2b44a9a
Commit
b2b44a9a
authored
Apr 15, 2016
by
Wenzel Jakob
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix for virtual dispatch on newly created threads
parent
71c5d80a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
docs/changelog.rst
+3
-1
include/pybind11/pybind11.h
+1
-1
No files found.
docs/changelog.rst
View file @
b2b44a9a
...
...
@@ -10,7 +10,9 @@ Changelog
* Added a convenience routine ``make_iterator()`` which turns a range indicated
by a pair of C++ iterators into a iterable Python object
* Added ``len()`` and a variadic ``make_tuple()`` function
* Addressed a rare issue that could confuse the current virtual function dispatcher
* Addressed a rare issue that could confuse the current virtual function
dispatcher and another that could lead to crashes in multi-threaded
applications
* Added a ``get_include()`` function to the Python module that returns the path
of the directory containing the installed pybind11 header files
* Documentation improvements: import issues, symbol visibility, pickling, limitations
...
...
include/pybind11/pybind11.h
View file @
b2b44a9a
...
...
@@ -1070,7 +1070,7 @@ inline function get_overload(const void *this_ptr, const char *name) {
/* Don't call dispatch code if invoked from overridden function */
PyFrameObject
*
frame
=
PyThreadState_Get
()
->
frame
;
if
((
std
::
string
)
pybind11
::
handle
(
frame
->
f_code
->
co_name
).
str
()
==
name
&&
if
(
frame
&&
(
std
::
string
)
pybind11
::
handle
(
frame
->
f_code
->
co_name
).
str
()
==
name
&&
frame
->
f_code
->
co_argcount
>
0
)
{
PyFrame_FastToLocals
(
frame
);
PyObject
*
self_caller
=
PyDict_GetItem
(
...
...
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