commit | 436eef23c41fe10dc34ed19a00caf9f1290a8689 | [log] [tgz] |
---|---|---|
author | Paul E. McKenney <paulmck@kernel.org> | Thu May 13 14:54:58 2021 -0700 |
committer | Paul E. McKenney <paulmck@kernel.org> | Tue Jul 27 11:47:34 2021 -0700 |
tree | a1945a22329dd27571a155e7b08f88a4e26f9cee | |
parent | 1846a7fa767fbf8cf42d71daf75d51e30e3c8327 [diff] |
tools/memory-model: Add example for heuristic lockless reads This commit adds example code for heuristic lockless reads, based loosely on the sem_lock() and sem_unlock() functions. [ paulmck: Apply Alan Stern and Manfred Spraul feedback. ] Reported-by: Manfred Spraul <manfred@colorfullife.com> [ paulmck: Update per Manfred Spraul and Hillf Danton feedback. ] Signed-off-by: Paul E. McKenney <paulmck@kernel.org>