@hbilling - I went through the code and for now I pushed a commit based on your 
remarks, defining macros for increment/decrement guarded by dst group lock. The 
increment is in a single place, decrement in two places, so I am not sure if 
using an atomic variable there will give any significant gain. When I will get 
some time for more testing, I will play with variants. The 
`ds_get_leastloaded()` was also updated to use the dst group lock.

Test and if all ok, report back and it can be backported.

-- 
You are receiving this because you commented.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/2322#issuecomment-630767354
_______________________________________________
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to