mirror of
https://github.com/python/cpython.git
synced 2025-08-22 17:55:18 +00:00
GH-108614: Unbreak emscripten build (GH-109132)
This commit is contained in:
parent
ccd48623d4
commit
501f2dc527
5 changed files with 11 additions and 10 deletions
|
@ -39,16 +39,16 @@ _Py_CheckEmscriptenSignals(void)
|
|||
}
|
||||
|
||||
#define PY_EMSCRIPTEN_SIGNAL_INTERVAL 50
|
||||
static int emscripten_signal_clock = PY_EMSCRIPTEN_SIGNAL_INTERVAL;
|
||||
int _Py_emscripten_signal_clock = PY_EMSCRIPTEN_SIGNAL_INTERVAL;
|
||||
|
||||
void
|
||||
_Py_CheckEmscriptenSignalsPeriodically(void)
|
||||
{
|
||||
if (emscripten_signal_clock == 0) {
|
||||
emscripten_signal_clock = PY_EMSCRIPTEN_SIGNAL_INTERVAL;
|
||||
if (_Py_emscripten_signal_clock == 0) {
|
||||
_Py_emscripten_signal_clock = PY_EMSCRIPTEN_SIGNAL_INTERVAL;
|
||||
_Py_CheckEmscriptenSignals();
|
||||
}
|
||||
else if (Py_EMSCRIPTEN_SIGNAL_HANDLING) {
|
||||
emscripten_signal_clock--;
|
||||
_Py_emscripten_signal_clock--;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue