BLUE
FD
Fabrice Desré
@fabrice.fosstodon.org.ap.brid.gy
Web Hacker [bridged from fosstodon.org/@fabrice on the fediverse by fed.brid.gy/ ]
3 followers0 following21 posts

@mauve Yeah the usual way to share data among threads is to wrap it in a `Arc<Mutex<T>>`. If you know that the access is read heavy, use an `RwLock` instead of the `Mutex`.

0

FD
Fabrice Desré
@fabrice.fosstodon.org.ap.brid.gy
Web Hacker [bridged from fosstodon.org/@fabrice on the fediverse by fed.brid.gy/ ]
3 followers0 following21 posts