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
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>
2 years ago
..
locked.go syncs: use TryLock and TryRLock instead of unsafe 2 years ago
locked_test.go all: remove old +build tags 2 years ago
syncs.go syncs: add Map (#6260) 2 years ago
syncs_test.go syncs: add Map (#6260) 2 years ago
watchdog.go staticcheck.conf: turn off noisy lint errors 3 years ago
watchdog_test.go syncs: stop running TestWatchMultipleValues on CI 3 years ago