KEMBAR78
[3.12] gh-102024: Reduced _idle_semaphore.release calls (GH-102025) by miss-islington · Pull Request #104959 · python/cpython · GitHub
Skip to content

Conversation

@miss-islington
Copy link
Contributor

@miss-islington miss-islington commented May 26, 2023

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


(cherry picked from commit 0242e9a)

Co-authored-by: Andrii Kuzmin jack.cvr@gmail.com
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Shantanu 12621235+hauntsaninja@users.noreply.github.com

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

---------

(cherry picked from commit 0242e9a)

Co-authored-by: Andrii Kuzmin <jack.cvr@gmail.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
@gpshead gpshead enabled auto-merge (squash) May 26, 2023 05:49
@gpshead gpshead self-assigned this May 26, 2023
@gpshead gpshead merged commit 8010cef into python:3.12 May 26, 2023
@miss-islington miss-islington deleted the backport-0242e9a-3.12 branch May 26, 2023 06:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants