For what kind of operation?
Reading or setting the value are safe, but updating it with its own
value used in an expression is not.
Safe:
xlog("value is $sht(x)\n");
$sht(x) = 1;
Race:
$sht(x) = $sht(x) + 1;
Cheers,
Daniel
On 19/11/14 00:27, Alex Balashov wrote:
Does setting $shv()s in script require lock()ing, or
is it inherently
thread-safe?
Thanks!
--
Daniel-Constantin Mierla
http://twitter.com/#!/miconda -
http://www.linkedin.com/in/miconda
Kamailio Advanced Training, Nov 24-27, Berlin -
http://www.asipto.com