<div dir="ltr">Ok so this is my case:<div><br></div><div style>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. </div>
<div style><br></div><div style>If rtimer runs a route, any other processing is stopped until this route ends? If so, I do not need any lock.</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jun 13, 2013 at 9:15 AM, Daniel-Constantin Mierla <span dir="ltr"><<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<div><div class="h5"><br>
<br>
On 6/12/13 9:04 AM, Mino Haluz wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
I need to lock the hashtable but this<br>
<br>
lock("$sht(a)");<br>
<br>
does not work. Any hints?<br>
</blockquote></div></div>
htable locks are inside the code and per slot, not per hash table, why you would need to lock it?<br>
<br>
For synchronous access in config file, you can use the locks from cfg utils.<br>
<br>
Cheers,<br>
Daniel<span class="HOEnZb"><font color="#888888"><br>
<br>
-- <br>
Daniel-Constantin Mierla - <a href="http://www.asipto.com" target="_blank">http://www.asipto.com</a><br>
<a href="http://twitter.com/#!/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/<u></u>miconda</a><br>
Kamailio Advanced Training, San Francisco, USA - June 24-27, 2013<br>
  * <a href="http://asipto.com/u/katu" target="_blank">http://asipto.com/u/katu</a> *<br>
<br>
<br>
______________________________<u></u>_________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/<u></u>cgi-bin/mailman/listinfo/sr-<u></u>users</a><br>
</font></span></blockquote></div><br></div>