Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
undo
  • Loading branch information
arihant2math committed Apr 6, 2025
commit d1849077d4ca007ad67d5297344c9d129cd4fee5
5 changes: 0 additions & 5 deletions stdlib/src/faulthandler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -246,12 +246,7 @@ mod decl {
unsafe impl Send for WatchdogThread {}
unsafe impl Sync for WatchdogThread {}

#[cfg(feature = "threading")]
static WATCHDOG: OnceLock<PyMutex<WatchdogThread>> = OnceLock::new();
#[cfg(not(feature = "threading"))]
thread_local! {
static WATCHDOG: OnceLock<PyMutex<WatchdogThread>> = OnceLock::new();
}

fn get_watchdog() -> &'static PyMutex<WatchdogThread> {
WATCHDOG.get_or_init(|| {
Expand Down
Loading