Open jbn98 opened 12 months ago
It would be best if you tried it using the current sysrepo in the devel
branch, there were quite a lot of changes already made. But it is a rather weird mutex that you seem not be able to lock and I am not sure what the problem may be.
Hi @michalvasko Thank you for your reply. I am calling the function notifyClient from a thread (attaching the code snippet ). Will that cause any issue?. Just want to check whether the issue is from my side.
/*----------CRITICAL SECTION-------------*/
pthread_mutex_lock (&lock1);
PRINT (LOG, program_invocation_short_name,
"Notifying client:%d \n", current->det.nc_sid);
/** Send notification to the client */
notifyClient ();
pthread_mutex_unlock (&lock1);
/*--------------------------------------*/
Like I said, if you want my assistance you will have to start by updating the used sysrepo and the other projects to their latest devel
versions. It is quite possible this is some locking issue and that is one aspect that has been significantly improved since the version you are using.
Hi Team
I am using below packages
libnetconf2-2.1.28 libyang-2.1.30 netopeer2-2.1.49 sysrepo-2.2.36
While sending the notification to the client I have observed some errors from the sysrepo. It says the 'failed to acquire context'. I will attach the error messages and the code snippet. Can you kindly look into this and tell me what I might be doing wrong and causing the issue. Thank you for you help in advance
------------CODE SNIPPET--------------
------------------ERROR LOGS--------------------