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 ff5b4bae99
syncs: add MutexValue (#14422)
MutexValue is simply a value guarded by a mutex.
For any type that is not pointer-sized,
MutexValue will perform much better than AtomicValue
since it will not incur an allocation boxing the value
into an interface value (which is how Go's atomic.Value
is implemented under-the-hood).

Updates #cleanup

Signed-off-by: Joe Tsai <joetsai@digital-static.net>
12 months ago
..
locked.go all: update copyright and license headers 3 years ago
locked_test.go all: update copyright and license headers 3 years ago
pool.go syncs: add generic Pool (#12759) 1 year ago
pool_test.go syncs: add generic Pool (#12759) 1 year ago
shardedmap.go syncs: add ShardedMap.Mutate 2 years ago
shardedmap_test.go syncs: add ShardedMap.Mutate 2 years ago
syncs.go syncs: add MutexValue (#14422) 12 months ago
syncs_test.go syncs: add MutexValue (#14422) 12 months ago