Lines Matching refs:Handlers
96 } Handlers[NSIG]; variable
227 _Py_atomic_store_relaxed(&Handlers[sig_num].tripped, 1); in trip_signal()
455 old_handler = Handlers[signalnum].func; in signal_signal_impl()
457 Handlers[signalnum].func = handler; in signal_signal_impl()
490 old_handler = Handlers[signalnum].func; in signal_getsignal_impl()
1270 _Py_atomic_store_relaxed(&Handlers[0].tripped, 0); in PyInit__signal()
1274 _Py_atomic_store_relaxed(&Handlers[i].tripped, 0); in PyInit__signal()
1276 Handlers[i].func = DefaultHandler; in PyInit__signal()
1278 Handlers[i].func = IgnoreHandler; in PyInit__signal()
1280 Handlers[i].func = Py_None; /* None of our business */ in PyInit__signal()
1281 Py_INCREF(Handlers[i].func); in PyInit__signal()
1283 if (Handlers[SIGINT].func == DefaultHandler) { in PyInit__signal()
1286 Py_SETREF(Handlers[SIGINT].func, IntHandler); in PyInit__signal()
1494 func = Handlers[i].func; in finisignal()
1495 _Py_atomic_store_relaxed(&Handlers[i].tripped, 0); in finisignal()
1496 Handlers[i].func = NULL; in finisignal()
1542 if (_Py_atomic_load_relaxed(&Handlers[i].tripped)) { in PyErr_CheckSignals()
1545 _Py_atomic_store_relaxed(&Handlers[i].tripped, 0); in PyErr_CheckSignals()
1548 result = PyEval_CallObject(Handlers[i].func, in PyErr_CheckSignals()
1592 if (_Py_atomic_load_relaxed(&Handlers[SIGINT].tripped)) { in PyOS_InterruptOccurred()
1595 _Py_atomic_store_relaxed(&Handlers[SIGINT].tripped, 0); in PyOS_InterruptOccurred()
1609 _Py_atomic_store_relaxed(&Handlers[i].tripped, 0); in _clear_pending_signals()