diff options
author | Mauri de Souza Meneguzzo <mauri870@gmail.com> | 2024-05-16 22:12:47 +0000 |
---|---|---|
committer | Gopher Robot <gobot@golang.org> | 2024-05-17 18:37:29 +0000 |
commit | 192d65e46b38381653ccbe16cac49f7fa36aac93 (patch) | |
tree | 6dc7232d4cef6973a185f3e7fbddea5dfeae439f /doc | |
parent | 664088b898330a2c73121c5a6f2d4dbec5b180d7 (diff) | |
download | go-192d65e46b38381653ccbe16cac49f7fa36aac93.tar.gz go-192d65e46b38381653ccbe16cac49f7fa36aac93.zip |
sync/atomic: public And/Or ops and race instrumentation
This CL implements the new sync/atomic AND and OR apis as well as their race
counterparts.
Fixes #61395
Change-Id: I294eefe4b3ac27bc4ed237edcbfa88a8c646d86f
GitHub-Last-Rev: f174297007c7b81b1ff4a687ef23d955a3ffd4db
GitHub-Pull-Request: golang/go#64331
Reviewed-on: https://go-review.googlesource.com/c/go/+/544455
Reviewed-by: Keith Randall <khr@golang.org>
Reviewed-by: Austin Clements <austin@google.com>
Auto-Submit: Austin Clements <austin@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Keith Randall <khr@google.com>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/next/6-stdlib/99-minor/sync/atomic/61395.md | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/next/6-stdlib/99-minor/sync/atomic/61395.md b/doc/next/6-stdlib/99-minor/sync/atomic/61395.md new file mode 100644 index 0000000000..05359347f4 --- /dev/null +++ b/doc/next/6-stdlib/99-minor/sync/atomic/61395.md @@ -0,0 +1,3 @@ +<!-- Issue #61395 --> +The new [`atomic.And`](/pkg/sync/atomic#And) and [`atomic.Or`](/pkg/sync/atomic#Or) +operators apply a bitwise `AND` or `OR` to the given input, returning the old value. |