Respect,
I'm working on an app with detatched threads. I've got a variable shared in the following manner.
use threads;
use threads::shared;
our $var : shared = ();
This is being accessed by various threads. Would I need to do a lock($var) when I use the variable in my threads? Or does Perl automatically provide locks on shared variables?
Any help would be appreciated