diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2014-11-27 19:05:57 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2014-11-27 19:05:57 +0100 |
commit | 7ca4c02513d7c6998d9c92dafb3c0fcbe8d6dd6d (patch) | |
tree | ae83135f1d3f08dd72ee83494eb036d5217380eb /release/README | |
parent | b69b9c28b6628c7d736476d075d56ae137afd343 (diff) |
Add atomicity support to fshelp_acquire_lock
This adds support for the __LOCK_ATOMIC flag which requests atomicity of SH->EX
upgrades and EX->SH downgrades.
* libfshelp/lock-acquire.c (__LOCK_ATOMIC): New macro
(fshelp_acquire_lock): When __LOCK_ATOMIC is set, do not release the
lock early, change the lock hold atomically instead. On upgrade to LOCK_EX,
prevent new shared locks from being acquired to avoid starvation.
Diffstat (limited to 'release/README')
0 files changed, 0 insertions, 0 deletions