]> Cypherpunks repositories - gostls13.git/commit
runtime/internal/atomic: add Bool
authorMichael Anthony Knyszek <mknyszek@google.com>
Mon, 14 Feb 2022 19:28:20 +0000 (19:28 +0000)
committerMichael Knyszek <mknyszek@google.com>
Thu, 31 Mar 2022 20:01:47 +0000 (20:01 +0000)
commitf1b5c048d7b7589a5b3ae423114baf27b3456021
treef6f3a0f24f0cca1dceee85fa6abd2fc1c79c3b4c
parent12acf9b0f009305eefc71d4cee8808cc244e86aa
runtime/internal/atomic: add Bool

This change adds the Bool type, a convenient wrapper around Uint8 for
atomic bool values.

Change-Id: I86127d6f213b730d6999db5718ca1a5af0c5b538
Reviewed-on: https://go-review.googlesource.com/c/go/+/393395
Reviewed-by: Michael Pratt <mpratt@google.com>
Reviewed-by: Austin Clements <austin@google.com>
Trust: Michael Knyszek <mknyszek@google.com>
src/runtime/internal/atomic/types.go