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>
2024-12-18 17:11:22 -08:00
..
2024-07-10 09:39:52 -07:00
2024-07-10 09:39:52 -07:00
2023-06-28 08:43:15 -07:00
2024-12-18 17:11:22 -08:00
2024-12-18 17:11:22 -08:00