top | item 17674113 (no title) dikaiosune | 7 years ago Re: non-thread-safe items in lazy_static, you can also wrap them in a mutex within just the lazy_static so the struct only uses synchronization when it actually needs to be thread-safe. discuss order hn newest dbaupp|7 years ago That removes the Sync requirement, but still requires Send, so doesn't completely resolve the requirement for thread-safety (e.g. Rc can't be stored). unknown|7 years ago [deleted]
dbaupp|7 years ago That removes the Sync requirement, but still requires Send, so doesn't completely resolve the requirement for thread-safety (e.g. Rc can't be stored).
dbaupp|7 years ago
unknown|7 years ago
[deleted]