We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ade984 commit 331a60eCopy full SHA for 331a60e
include/pybind11/pybind11.h
@@ -1263,11 +1263,14 @@ PYBIND11_NAMESPACE_END(detail)
1263
// Use to activate Py_MOD_GIL_NOT_USED.
1264
class mod_gil_not_used {
1265
public:
1266
- explicit mod_gil_not_used(bool flag = true) : flag_(flag) {}
+ mod_gil_not_used() : flag_(true) {}
1267
bool flag() const { return flag_; }
1268
1269
+ friend mod_gil_not_used mod_gil_used();
1270
+
1271
private:
1272
bool flag_;
1273
+ explicit mod_gil_not_used(bool flag) : flag_(flag) {}
1274
};
1275
1276
inline mod_gil_not_used mod_gil_used() { return mod_gil_not_used(false); }
0 commit comments