You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailscale/syncs
James Tucker 498f7ec663 syncs: add Map.LoadOrInit for lazily initialized values
I was reviewing some code that was performing this by hand, and wanted
to suggest using syncs.Map, however as the code in question was
allocating a non-trivial structure this would be necessary to meet the
target.

Updates #cleanup

Signed-off-by: James Tucker <james@tailscale.com>
1 year ago
..
locked.go all: update copyright and license headers 2 years ago
locked_test.go all: update copyright and license headers 2 years ago
shardedmap.go syncs: add ShardedMap.Mutate 1 year ago
shardedmap_test.go syncs: add ShardedMap.Mutate 1 year ago
syncs.go syncs: add Map.LoadOrInit for lazily initialized values 1 year ago
syncs_test.go syncs: add Map.LoadOrInit for lazily initialized values 1 year ago
watchdog.go all: update copyright and license headers 2 years ago
watchdog_test.go syncs: relax TestWatchMultipleValues timing on Windows 2 years ago