3 ms·
It's often not. Many high- performance libraries use fine- grained locking within logical units (eg locking buckets within a hash table in the fast path rather
by pclmulqdq 4y ago
It's often not. Many high- performance libraries use fine- grained locking within logical units (eg locking buckets within a hash table in the fast path rather than locking the table), which almost necessitates sharing references.
- marcosdumay 4y agoSo, you keep the hash table read-only on a static context, and only mutates some internal references? In rust you will have to declare it exactly like that. That's not really an example of passing mutable references between threads.