Skip to content

Conversation

@Jckwind
Copy link
Contributor

@Jckwind Jckwind commented Nov 21, 2025

Proposed changes

  • Guard scheduler stream/thread vectors with a creation mutex to keep stream IDs unique under concurrency.
  • Protect Metal stream_map_ with shared/unique locking and stable pointers to prevent races/rehash invalidation; centralize command buffer creation.
  • Add a regression test for concurrent CPU stream creation.

Checklist

  • I have read the CONTRIBUTING document
  • I have run pre-commit run --all-files to format my code / installed pre-commit prior to committing changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have updated the necessary documentation (if needed)

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