Ok so this is my case:
I have rtimer which checks for shv(startload) variable. If it is set, it
will run LOAD_DATA route which deletes the hashtable a fills with fresh
data from database. These hashtables contains prefixes and some custom
data. So I'm afraid when doing an update, data can be inconsistent a while.
If rtimer runs a route, any other processing is stopped until this route
ends? If so, I do not need any lock.
On Thu, Jun 13, 2013 at 9:15 AM, Daniel-Constantin Mierla <miconda(a)gmail.com
wrote:
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<http://www.linkedin.com/in/miconda&…
Kamailio Advanced Training, San Francisco, USA - June 24-27, 2013
*
http://asipto.com/u/katu *
______________________________**_________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users(a)lists.sip-router.org
http://lists.sip-router.org/**cgi-bin/mailman/listinfo/sr-**users<http:/…