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.
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.