Symmetric-transfer thread_pool dispatch on worker threads#269
Symmetric-transfer thread_pool dispatch on worker threads#269sgerbino wants to merge 1 commit intocppalliance:developfrom
Conversation
dispatch() previously always posted, forcing a queue round-trip even when the caller was already running on one of the pool's workers. It now returns c.h when the calling thread is a worker of the pool, per the Executor concept's inline-resume contract. A thread_local_ptr marker set via RAII in run() identifies pool workers; cross-pool and non-worker callers still post.
|
An automated preview of the documentation is available at https://269.capy.prtest3.cppalliance.org/index.html If more commits are pushed to the pull request, the docs will rebuild at the same URL. 2026-04-24 18:01:51 UTC |
|
GCOVR code coverage report https://269.capy.prtest3.cppalliance.org/gcovr/index.html Build time: 2026-04-24 18:14:02 UTC |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #269 +/- ##
===========================================
+ Coverage 92.35% 92.38% +0.03%
===========================================
Files 168 168
Lines 9354 9369 +15
===========================================
+ Hits 8639 8656 +17
+ Misses 715 713 -2
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 3 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
7f92267 to
9faa534
Compare
dispatch() previously always posted, forcing a queue round-trip even when the caller was already running on one of the pool's workers. It now returns c.h when the calling thread is a worker of the pool, per the Executor concept's inline-resume contract. A thread_local_ptr marker set via RAII in run() identifies pool workers; cross-pool and non-worker callers still post.