@henningw commented on this pull request.


>  int mod_register(char *path, int *dlflags, void *p1, void *p2)
 {
        if(db_api_init() < 0)
                return -1;
        return 0;
 }
 
+static void db_redis_timer(unsigned int ticks, void *param)
+{
+       if(shared_time) {

It is an integer value, and you are also doing an assigment and not an 
increment. So its probably fine without a lock. Even if some process access it 
during the assignment, it should just receive a stale value.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/4373#discussion_r2465577442
You are receiving this because you are subscribed to this thread.

Message ID: <kamailio/kamailio/pull/4373/review/[email protected]>
_______________________________________________
Kamailio - Development Mailing List -- [email protected]
To unsubscribe send an email to [email protected]
Important: keep the mailing list in the recipients, do not reply only to the 
sender!

Reply via email to