<p></p>
<p>Thanks Daniel,<br>
I will await your response on the issue then, regarding using the lock or atomic integers. I presume the atomic integer usage must be faster than the locking approach.<br>
FWIW, a similar locking is being used in 'dp_init_relative_weights()' and 'ds_update_latency' APIs in dispatch.c also.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/2322#issuecomment-627750313">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZINCF24E6BMTEAK5HLRRIT7ZANCNFSM4M5V5VYA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZI5N2VDCMDQGFZKKLTRRIT7ZA5CNFSM4M5V5VYKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEVVLLKI.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/2322#issuecomment-627750313",
"url": "https://github.com/kamailio/kamailio/issues/2322#issuecomment-627750313",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>