]> Cypherpunks repositories - gostls13.git/commit
runtime: fix comment
authorDmitry Vyukov <dvyukov@google.com>
Fri, 13 Mar 2015 13:02:47 +0000 (16:02 +0300)
committerDmitry Vyukov <dvyukov@google.com>
Tue, 17 Mar 2015 15:23:20 +0000 (15:23 +0000)
commit2e7f0a00c337c0a536fafc1d5cb831cb4c76efad
tree5e44fffcfbed5b168de3dd048f66729c75cade4d
parent4396ea96c43e1df585c648762b6993e84cb6a2e5
runtime: fix comment

IRIW requires 4 threads: first writes x, second writes y,
third reads x and y, fourth reads y and x.
This is Peterson/Dekker mutual exclusion algorithm based on
critical store-load sequences:
http://en.wikipedia.org/wiki/Dekker's_algorithm
http://en.wikipedia.org/wiki/Peterson%27s_algorithm

Change-Id: I30a00865afbe895f7617feed4559018f81ff4528
Reviewed-on: https://go-review.googlesource.com/7561
Reviewed-by: Austin Clements <austin@google.com>
Reviewed-by: Rick Hudson <rlh@golang.org>
src/runtime/mbarrier.go