Skip to content

fix: tighten threading correctness and v2 docs - #2

Merged
project-relay merged 6 commits into
mainfrom
agent/threading-correctness-followup
Aug 8, 2026
Merged

fix: tighten threading correctness and v2 docs#2
project-relay merged 6 commits into
mainfrom
agent/threading-correctness-followup

Conversation

@project-relay

Copy link
Copy Markdown
Collaborator

Follow-up to upstream multithreading PR nihiL7331#30 focused on regressions and concurrency correctness.

What changed:

  • restore opt-in stb-style POLESITTER_IMPLEMENTATION semantics
  • synchronize thread-pool queue/state inspection under the existing spinlock instead of relying on volatile
  • avoid depending on AVX intrinsics just for the x86 spin-wait hint
  • make the ST-vs-MT force comparator actually fail when force values differ
  • update the README quickstart to match the v2 config/API, including multithreading and ps_destroy

Why:
The v2 threading rewrite introduced several cross-cutting regressions while changing the execution architecture. In particular, volatile does not make the pool counters/flags safe for concurrent access in C, and the ST-vs-MT comparator printed force mismatches without incrementing its failure count.

This keeps the threading architecture intact and narrows the changes to correctness/portability/documentation fixes.

@project-relay

@project-relay
project-relay marked this pull request as ready for review August 8, 2026 01:41
@project-relay
project-relay merged commit c73aed5 into main Aug 8, 2026
4 checks passed
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