Re: [SR-Users] How to lock hashtable variable

2013-06-13 Thread Mino Haluz
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 incon

Re: [SR-Users] How to lock hashtable variable

2013-06-13 Thread Daniel-Constantin Mierla
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 f

[SR-Users] How to lock hashtable variable

2013-06-12 Thread Mino Haluz
Hi, I need to lock the hashtable but this lock("$sht(a)"); does not work. Any hints? 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