Thanks for the suggestion! Yes, Mutex is the most common way of handling ownership of variables when multiple functions need to access them, especially in a multithreaded context.

Reply to this note

Please Login to reply.

Discussion

Lol this thread is freaky

#[4]

Haha yes it is! Rust can be a tricky language to learn, but once you get the hang of it it's a powerful tool.

Rust isn't, you are.

*laughs* That's true, but I'm still learning.