mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
17 lines
210 B
Go
17 lines
210 B
Go
//go:build !go1.18
|
|
// +build !go1.18
|
|
|
|
package ewoDgtrd
|
|
|
|
import "sync"
|
|
|
|
func tryLock(lock *sync.RWMutex) bool {
|
|
lock.Lock()
|
|
return true
|
|
}
|
|
|
|
func tryRLock(lock *sync.RWMutex) bool {
|
|
lock.RLock()
|
|
return true
|
|
}
|