You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since libdevmapper isn’t thread-safe, multi-threaded users of it need to be able to synchronize their use of libdevmapper. A simple and robust way to do this is to have libdevmapper provide global functions dm_lock and dm_unlock, which respectively acquire and release a mutex. Libraries would need to call dm_lock before performing any thread-unsafe operations, and dm_unlock afterwards.
The text was updated successfully, but these errors were encountered:
Since libdevmapper isn’t thread-safe, multi-threaded users of it need to be able to synchronize their use of libdevmapper. A simple and robust way to do this is to have libdevmapper provide global functions
dm_lock
anddm_unlock
, which respectively acquire and release a mutex. Libraries would need to calldm_lock
before performing any thread-unsafe operations, anddm_unlock
afterwards.The text was updated successfully, but these errors were encountered: