Skip to content

Commit 40731b7

Browse files
committed
Remove scope release of GIL
1 parent 5f96327 commit 40731b7

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

include/pybind11/detail/internals.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -717,9 +717,6 @@ class internals_pp_manager {
717717

718718
void create_pp_content_once(std::unique_ptr<InternalsType> *const pp) {
719719
{
720-
#ifndef Py_GIL_DISABLED
721-
gil_scoped_release_simple gil_release{};
722-
#endif
723720
std::lock_guard<std::mutex> lock(pp_set_mutex_);
724721

725722
if (*pp) {

0 commit comments

Comments
 (0)