Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
Maledictus
on April 4, 2025
|
parent
|
context
|
favorite
| on:
My Rust experience after eight years
Could you create a type around Mutex that enforces the locking order?
aw1621107
on April 4, 2025
|
next
[–]
Something like
https://docs.rs/lock_ordering/latest/lock_ordering
perhaps?
selfmodruntime
on April 4, 2025
|
prev
[–]
You could - and this is what we do - push all of your state into one large struct. Note that this has drawbacks as well and if you have a lot of reads and some very important writes, you will still get deadlocks.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: