summaryrefslogtreecommitdiff
path: root/releasenotes/notes/add-option-for-fair-locks-b6d660e97683cec6.yaml
blob: ad1cd4ba69a3c42a933447713fde5fc12eab9d26 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
---
prelude: >
    This release includes optional support for fair locks.  When fair locks
    are specified, blocking waiters will acquire the lock in the order that
    they blocked.
features:
  - |
    We now have optional support for ``fair`` locks.  When fair locks are
    specified, blocking waiters will acquire the lock in the order that they
    blocked.  This can be useful to ensure that existing blocked waiters do
    not wait indefinitely in the face of large numbers of new attempts to
    acquire the lock.  When specifying locks as both ``external`` and ``fair``,
    the ordering *within* a given process will be fair, but the ordering
    *between* processes will be determined by the behaviour of the underlying
    OS.