mirror of
https://github.com/charlienet/go-mixed.git
synced 2025-07-18 00:22:41 +08:00
locker
This commit is contained in:
12
locker/rw_locker_test.go
Normal file
12
locker/rw_locker_test.go
Normal file
@ -0,0 +1,12 @@
|
||||
package locker
|
||||
|
||||
import "testing"
|
||||
|
||||
func TestRWLokcer(t *testing.T) {
|
||||
l := NewRWLocker()
|
||||
l.RLock()
|
||||
|
||||
t.Log(l.TryRLock())
|
||||
|
||||
l.RUnlock()
|
||||
}
|
Reference in New Issue
Block a user