1
0
mirror of https://github.com/charlienet/go-mixed.git synced 2025-07-18 08:32:40 +08:00
This commit is contained in:
2024-05-28 04:23:30 +08:00
parent 1abde30d8f
commit b4ac1cc449
12 changed files with 405 additions and 29 deletions

View File

@ -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