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 46a9ccd commit 3dd439dCopy full SHA for 3dd439d
pyo3-ffi/src/pystate.rs
@@ -80,21 +80,6 @@ pub enum PyGILState_STATE {
80
PyGILState_UNLOCKED,
81
}
82
83
-struct HangThread;
84
-
85
-impl Drop for HangThread {
86
- fn drop(&mut self) {
87
- loop {
88
- #[cfg(target_family = "unix")]
89
- unsafe {
90
- libc::pause();
91
- }
92
- #[cfg(not(target_family = "unix"))]
93
- std::thread::sleep(std::time::Duration::from_secs(9_999_999));
94
95
96
-}
97
98
// The PyGILState_Ensure function will call pthread_exit during interpreter shutdown,
99
// which causes undefined behavior. Redirect to the "safe" version that hangs instead,
100
// as Python 3.14 does.
0 commit comments