Skip to content

Mutex should be ~Copyable #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 3, 2025
Merged

Mutex should be ~Copyable #5

merged 1 commit into from
Jun 3, 2025

Conversation

swhitty
Copy link
Owner

@swhitty swhitty commented Jun 3, 2025

Updates Mutex to support non copyable's aligning with the Swift 6 API.

struct Mutex<Value: ~Copyable>: ~Copyable

Deprecates AllocatedLock as it is now longer used, instead a single class is used for the storage of both he value and lock.

Note: The windows version does not yet support these ~Copyable annotations.

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (c7c4773) to head (da6e0f3).

Additional details and impacted files
@@             Coverage Diff             @@
##             main        #5      +/-   ##
===========================================
+ Coverage   97.75%   100.00%   +2.24%     
===========================================
  Files           5         5              
  Lines         267       268       +1     
===========================================
+ Hits          261       268       +7     
+ Misses          6         0       -6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@swhitty swhitty merged commit b55a65b into main Jun 3, 2025
20 checks passed
@swhitty swhitty deleted the non-copyable branch June 3, 2025 04:32
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.

2 participants