|
|
|
|
|
by jstimpfle
216 days ago
|
|
Given a data item of non-thread safe type (i.e. not Mutex<T> etc), the borrow checker checks that there's only ever one mutable reference to it. This doesn't solve concurrency as it prevents multiple threads from even having the ability to access that data. Mutex is for where you have that ability, and ensures at runtime that accesses get serialized. |
|
This means no atomic operations or syscalls or what have you.