Skip to content

[3.12] gh-102024: Reduced _idle_semaphore.release calls (GH-102025) - #104959

Merged
gpshead merged 1 commit into
python:3.12from
miss-islington:backport-0242e9a-3.12
May 26, 2023
Merged

gpshead merged 1 commit into
python:3.12from
miss-islington:backport-0242e9a-3.12

Conversation

@miss-islington

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

Copy link
Copy Markdown
Contributor

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

4 participants