sysrepo / sysrepo-cpp

C++ bindings for the sysrepo library
BSD 3-Clause "New" or "Revised" License
6 stars 5 forks source link

Support of sr_lock() #19

Closed rbu9fe closed 7 months ago

rbu9fe commented 7 months ago

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?

jktjkt commented 7 months ago

how does https://gerrit.cesnet.cz/c/CzechLight/sysrepo-cpp/+/6671 look like?

rbu9fe commented 7 months ago

Thanks for your quick support!