lock(@{$self->{queue}}); [download]
In reply to Re: Unable to lock shared value by ikegami in thread Unable to lock shared value by Anonymous Monk