Skip to content

Commit e963cff

Browse files
authored
Issue #2949 Run background checks during long multiplications
1 parent 40f1bd0 commit e963cff

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

py/mpz.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,8 +443,11 @@ STATIC size_t mpn_mul(mpz_dig_t *idig, mpz_dig_t *jdig, size_t jlen, mpz_dig_t *
443443
*id++ = carry;
444444
}
445445

446-
ilen = id - oidig;
446+
ilen = id - oidig;
447+
// check to prevent usb starvation
448+
RUN_BACKGROUND_TASKS;
447449
}
450+
448451

449452
return ilen;
450453
}

0 commit comments

Comments
 (0)