refactor: Migrate std mutexes to parking_lot #908

Merged
Jade merged 8 commits from jade/parking_lot into main 2025-07-20 15:41:25 +00:00
Owner

What we're looking for:

  • Deadlocks might be detected (Shouldn't be anything that triggers them now, but appservice EDUs used to trigger something
  • Performance improvements from less memory and hardware lock elision

My whole with_lock api might be redundant for sync locks with unlocked. Although that has slightly different semantics (&mut rather than just &)
Code style wise we make it clear that these are synchronous primitives.

What we're looking for: - Deadlocks might be detected (Shouldn't be anything that triggers them now, but appservice EDUs used to trigger *something* - Performance improvements from less memory and hardware lock elision My whole with_lock api might be redundant for sync locks with [unlocked](https://docs.rs/lock_api/0.4.13/lock_api/struct.MutexGuard.html#method.unlocked). Although that has slightly different semantics (&mut rather than just &) Code style wise we make it clear that these are synchronous primitives.
Jade added 8 commits 2025-07-20 00:46:17 +00:00
chore: Disable direnv's nix flake interfering with cargo cache
All checks were successful
Release Docker Image / define-variables (push) Successful in 4s
Checks / Prefligit / prefligit (push) Successful in 35s
Checks / Rust / Format (push) Successful in 44s
Checks / Rust / Clippy (push) Successful in 4m15s
Checks / Rust / Cargo Test (push) Successful in 5m8s
Release Docker Image / build-image (linux/arm64, release, linux-arm64, base) (push) Successful in 13m18s
Release Docker Image / build-image (linux/amd64, release, linux-amd64, base) (push) Successful in 13m51s
Release Docker Image / merge (push) Successful in 36s
Checks / Prefligit / prefligit (pull_request) Successful in 34s
Documentation / Build and Deploy Documentation (pull_request) Successful in 45s
394382884d
Jade force-pushed jade/parking_lot from 394382884d to 95610499c7 2025-07-20 15:36:12 +00:00 Compare
Jade scheduled this pull request to auto merge when all checks succeed 2025-07-20 15:36:27 +00:00
Jade merged commit 95610499c7 into main 2025-07-20 15:41:25 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: continuwuation/continuwuity#908
No description provided.