[SR-Users] How to lock hashtable variable

Daniel-Constantin Mierla miconda at gmail.com
Thu Jun 13 09:15:28 CEST 2013


Hello,

On 6/12/13 9:04 AM, Mino Haluz wrote:
> Hi,
>
> I need to lock the hashtable but this
>
> lock("$sht(a)");
>
> does not work. Any hints?
htable locks are inside the code and per slot, not per hash table, why 
you would need to lock it?

For synchronous access in config file, you can use the locks from cfg utils.

Cheers,
Daniel

-- 
Daniel-Constantin Mierla - http://www.asipto.com
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Kamailio Advanced Training, San Francisco, USA - June 24-27, 2013
   * http://asipto.com/u/katu *




More information about the sr-users mailing list