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>
8 months ago
..
locked.go all: update copyright and license headers 1 year ago
locked_test.go all: update copyright and license headers 1 year ago
shardedmap.go syncs: add ShardedMap.Mutate 11 months ago
shardedmap_test.go syncs: add ShardedMap.Mutate 11 months ago
syncs.go syncs: add Map.LoadOrInit for lazily initialized values 8 months ago
syncs_test.go syncs: add Map.LoadOrInit for lazily initialized values 8 months ago
watchdog.go all: update copyright and license headers 1 year ago
watchdog_test.go syncs: relax TestWatchMultipleValues timing on Windows 1 year ago