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
2547ca46
Commit
2547ca46
authored
Jan 25, 2016
by
Felipe Lema
Committed by
Wenzel Jakob
Jan 28, 2016
Browse files
deal with Python versions compiled without thread support (fixes #81)
parent
15f6a003
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
include/pybind11/pybind11.h
include/pybind11/pybind11.h
+2
-0
No files found.
include/pybind11/pybind11.h
View file @
2547ca46
...
...
@@ -983,6 +983,7 @@ template <typename InputType, typename OutputType> void implicitly_convertible()
((
detail
::
type_info
*
)
it
->
second
)
->
implicit_conversions
.
push_back
(
implicit_caster
);
}
#if defined(WITH_THREAD)
inline
void
init_threading
()
{
PyEval_InitThreads
();
}
class
gil_scoped_acquire
{
...
...
@@ -998,6 +999,7 @@ public:
inline
gil_scoped_release
()
{
state
=
PyEval_SaveThread
();
}
inline
~
gil_scoped_release
()
{
PyEval_RestoreThread
(
state
);
}
};
#endif
inline
function
get_overload
(
const
void
*
this_ptr
,
const
char
*
name
)
{
handle
py_object
=
detail
::
get_object_handle
(
this_ptr
);
...
...
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