Thanks Daniel, 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. FWIW, a similar locking is being used in 'dp_init_relative_weights()' and 'ds_update_latency' APIs in dispatch.c also.