mirror of
https://github.com/charlienet/go-mixed.git
synced 2025-07-18 08:32:40 +08:00
locker
This commit is contained in:
@ -1,12 +1,14 @@
|
||||
package locker
|
||||
package locker_test
|
||||
|
||||
import (
|
||||
"sync"
|
||||
"testing"
|
||||
|
||||
"github.com/charlienet/go-mixed/locker"
|
||||
)
|
||||
|
||||
func TestSpinLock(t *testing.T) {
|
||||
l := NewSpinLocker()
|
||||
l := locker.NewSpinLocker()
|
||||
|
||||
n := 10
|
||||
c := 0
|
||||
|
Reference in New Issue
Block a user