go-lock is a lock library implementing read-write mutex and read-write trylock without starvation
Fix: typo in the example
sync.Mutex
and sync.RWMutex
.TryLockWithContext
for both read-write locksAn effcient read-write lock with the following built-in mechanism: