10000 Issue#2949 Put in a check to prevent USB starvation by long calculations by DavePutz · Pull Request #3149 · adafruit/circuitpython · GitHub
[go: up one dir, main page]

Skip to content

Issue#2949 Put in a check to prevent USB starvation by long calculations #3149

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Jul 21, 2020
Merged
Changes from all commits
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
4 changes: 4 additions & 0 deletions py/mpz.c
421B
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,10 @@ STATIC size_t mpn_mul(mpz_dig_t *idig, mpz_dig_t *jdig, size_t jlen, mpz_dig_t *
}

ilen = id - oidig;
// check to prevent usb starvation
#ifdef RUN_BACKGROUND_TASKS
RUN_BACKGROUND_TASKS;
#endif
}

return ilen;
Expand Down
0