tailscale/syncs
Joe Tsai 9a05cdd2b5
syncs: add Map (#6260)
Map is a concurrent safe map that is a trivial wrapper
over a Go map and a sync.RWMutex.

It is optimized for use-cases where the entries change often,
which is the opposite use-case of what sync.Map is optimized for.

The API is patterned off of sync.Map, but made generic.

Signed-off-by: Joe Tsai <joetsai@digital-static.net>
2022-11-10 10:55:26 -08:00
..
locked.go syncs: use TryLock and TryRLock instead of unsafe 2022-03-17 10:57:41 -07:00
locked_test.go all: remove old +build tags 2022-11-04 07:25:42 -07:00
syncs.go syncs: add Map (#6260) 2022-11-10 10:55:26 -08:00
syncs_test.go syncs: add Map (#6260) 2022-11-10 10:55:26 -08:00
watchdog.go staticcheck.conf: turn off noisy lint errors 2021-06-18 15:48:20 -07:00
watchdog_test.go syncs: stop running TestWatchMultipleValues on CI 2021-05-04 10:21:21 -07:00