2022-05-16 17:32:51 +00:00
|
|
|
//go:build !go1.18
|
|
|
|
// +build !go1.18
|
|
|
|
|
|
|
|
package ewoDgtrd
|
|
|
|
|
|
|
|
import "sync"
|
|
|
|
|
|
|
|
func tryLock(lock *sync.RWMutex) bool {
|
|
|
|
lock.Lock()
|
|
|
|
return true
|
|
|
|
}
|
2022-05-30 03:45:52 +00:00
|
|
|
|
|
|
|
func tryRLock(lock *sync.RWMutex) bool {
|
|
|
|
lock.RLock()
|
|
|
|
return true
|
|
|
|
}
|