| 31 | void gil_acquire() { py::gil_scoped_acquire gil; } |
| 32 | |
| 33 | std::string gil_multi_acquire_release(unsigned bits) { |
| 34 | if ((bits & 0x1u) != 0u) { |
| 35 | py::gil_scoped_acquire gil; |
| 36 | } |
| 37 | if ((bits & 0x2u) != 0u) { |
| 38 | py::gil_scoped_release gil; |
| 39 | } |
| 40 | if ((bits & 0x4u) != 0u) { |
| 41 | py::gil_scoped_acquire gil; |
| 42 | } |
| 43 | if ((bits & 0x8u) != 0u) { |
| 44 | py::gil_scoped_release gil; |
| 45 | } |
| 46 | return PYBIND11_INTERNALS_ID; |
| 47 | } |
| 48 | |
| 49 | struct CustomAutoGIL { |
| 50 | CustomAutoGIL() : gstate(PyGILState_Ensure()) {} |
nothing calls this directly
no outgoing calls
no test coverage detected