Sysrepo's C API features the sr_lock() function, with which race conditions can be avoided when multiple clients want to modify a datastore in parallel. With the locking mechanism there's a race condition in which the first changes may be overwritten by latter ones unintentionally.
Would it be possible to implement that feature in the Session class?
Sysrepo's C API features the
sr_lock()
function, with which race conditions can be avoided when multiple clients want to modify a datastore in parallel. With the locking mechanism there's a race condition in which the first changes may be overwritten by latter ones unintentionally. Would it be possible to implement that feature in theSession
class?