Re: [SR-Users] Difference between shared and script variable

2013-02-21 Thread Daniel-Constantin Mierla
Hello, On 2/19/13 11:41 PM, Mino Haluz wrote: Thank you very much for this. One question regarding $sht. Does it need locking like $shv does? depends what operation you do. A read does not need locking, a write does not need, but updates that uses itself need. Cheers, Daniel On Thu, Feb

Re: [SR-Users] Difference between shared and script variable

2013-02-19 Thread Mino Haluz
Thank you very much for this. One question regarding $sht. Does it need locking like $shv does? On Thu, Feb 14, 2013 at 8:35 AM, Daniel-Constantin Mierla wrote: > Hello, > > $shv(...) is referred as shared memory variable because it stores the > value in shared memory. That means if you set $

Re: [SR-Users] Difference between shared and script variable

2013-02-13 Thread Daniel-Constantin Mierla
Hello, $shv(...) is referred as shared memory variable because it stores the value in shared memory. That means if you set $shv(x) in one process, you can read its value from another process. You have to be sure you don't have races in setting the variable, that could be achieved with locks f

[SR-Users] Difference between shared and script variable

2013-02-12 Thread Mino Haluz
Hi, what is the difference between shared and script variable ? Thanks Mino ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users