Comment Comment by mcguire Wait just a minute. Ralf Jung writes,"This means that the compiler considers a type like MutexGuard<T> to be Sync if all its fields are Sync."Is that true in general? Is a type thread safe if all its fields are thread safe individually? parent mcguire 9 years ago
"This means that the compiler considers a type like MutexGuard<T> to be Sync if all its fields are Sync."
Is that true in general? Is a type thread safe if all its fields are thread safe individually?