]> Cypherpunks repositories - gostls13.git/commit
internal/sync: add CompareAndSwap to HashTrieMap
authorMichael Anthony Knyszek <mknyszek@google.com>
Fri, 21 Jun 2024 20:42:45 +0000 (20:42 +0000)
committerGopher Robot <gobot@golang.org>
Mon, 18 Nov 2024 20:35:11 +0000 (20:35 +0000)
commit85fa418fd5bec603dd87254178e64afd1782bd35
tree016480a900203a11cc6792e11ec9eec69aa8bb48
parente8c5e6d63527da969d7bde308bda922e85db2432
internal/sync: add CompareAndSwap to HashTrieMap

This change adds the CompareAndSwap operation (with the same semantics
as sync.Map's CompareAndSwap) to HashTrieMap.

Change-Id: I86153799fc47304784333d17f0c6a7ad7682f04a
Reviewed-on: https://go-review.googlesource.com/c/go/+/594063
Reviewed-by: David Chase <drchase@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Michael Knyszek <mknyszek@google.com>
src/internal/sync/hashtriemap.go
src/internal/sync/hashtriemap_test.go