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
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
watchdog_test.go