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
17b10d7c
Commit
17b10d7c
authored
Apr 25, 2016
by
Wenzel Jakob
Browse files
functional.h: acquire GIL before calling Python function
parent
2f6662e1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
include/pybind11/functional.h
include/pybind11/functional.h
+1
-0
No files found.
include/pybind11/functional.h
View file @
17b10d7c
...
...
@@ -24,6 +24,7 @@ public:
return
false
;
object
src
(
src_
,
true
);
value
=
[
src
](
Args
...
args
)
->
Return
{
gil_scoped_acquire
acq
;
object
retval
(
src
.
call
(
std
::
move
(
args
)...));
/* Visual studio 2015 parser issue: need parentheses around this expression */
return
(
retval
.
template
cast
<
Return
>());
...
...
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