|
|
|
|
|
by the_mungler
1303 days ago
|
|
To be fair, rust at kernel level seems to have way more unsafe code than usual, though I have no experience in that area so I can't say much.
In rust you absolutely can "just take a lock around some shared data", but it is a bit different then other languages. mutexes actually contain the data they guard, making it impossible to modify unless you have the lock. There is another article about muexes by this same author if you want more details: http://cliffle.com/blog/rust-mutexes/ |
|