Commit Graph
1 Commits
Author SHA1 Message Date
Joe Tsai 2057205300 syncs: add LockFunc, LockValue, LockValues, and Mutex
The first 3 functions are helpers for running functions
under the protection of a lock.

The Mutex type is a wrapper over sync.Mutex with a Do method
that runs a function under the protection of a lock.

Updates #11038
Updates #cleanup

Signed-off-by: Joe Tsai <[email protected]>
2024-07-13 14:40:04 -07:00