SIGN IN SIGN UP

gh-102024: Reduced _idle_semaphore.release calls (#102025)

Reduced _idle_semaphore.release calls in concurrent.futures.thread._worker
_idle_semaphore.release() is now only called if only work_queue is empty.

---------

Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
A
Andrii Kuzmin committed
0242e9a57aa87ed0b5cac526f65631c654a39054
Parent: 72c3d2e
Committed by GitHub <noreply@github.com> on 5/26/2023, 5:48:40 AM