Skip to content

Use a pthreadpool_atomic_size_t instead of an fxdiv_divisor_size_t for threads_count as the former can be loaded and stored atomically.#80

Merged
copybara-service[bot] merged 1 commit intomainfrom
test_821114197
Oct 20, 2025
Merged

Use a pthreadpool_atomic_size_t instead of an fxdiv_divisor_size_t for threads_count as the former can be loaded and stored atomically.#80
copybara-service[bot] merged 1 commit intomainfrom
test_821114197

Conversation

@copybara-service
Copy link

@copybara-service copybara-service bot commented Oct 18, 2025

Use a pthreadpool_atomic_size_t instead of an fxdiv_divisor_size_t for threads_count as the former can be loaded and stored atomically.

This avoids confusing the thread sanitizer in some situations.

This change also tidies up the logic around when/how to schedule worker threads.

@copybara-service copybara-service bot force-pushed the test_821114197 branch 4 times, most recently from 1d61735 to aa4010b Compare October 20, 2025 10:22
…` for `threads_count` as the former can be loaded and stored atomically.

This avoids confusing the thread sanitizer in some situations.

This change also tidies up the logic around when/how to schedule worker threads.

PiperOrigin-RevId: 821572382
@copybara-service copybara-service bot merged commit 8017cbf into main Oct 20, 2025
@copybara-service copybara-service bot deleted the test_821114197 branch October 20, 2025 10:27
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.

1 participant