mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
288fcb8218
The standard library sync.Mutex has included a TryLock method since Go 1.18. There is no longer a need to implement a parallel version with unsafe. Using the standard library version reduces the ongoing maintenance cost of this package. https://pkg.go.dev/sync#Mutex.TryLock https://tip.golang.org/doc/go1.18#minor_library_changes
sync
This package provides additional synchronization primitives not provided by the Go stdlib 'sync' package. It is partially derived from the upstream 'sync' package from go1.10.