by usrbinbash · 3y ago · 0 comments
Not obvious to me I'm afraid. Using CSP, this is almost trivially easy. All access to the data goes through a guardian thread. Accessing the resource is just sending a message.
And mutexes are not hard either.
crossbeam_channel FTW