mirror of
https://github.com/charlienet/go-mixed.git
synced 2025-07-17 16:12:42 +08:00
use base locker
This commit is contained in:
@ -2,15 +2,15 @@ package bloom
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
"sync"
|
||||||
|
|
||||||
"github.com/bits-and-blooms/bitset"
|
"github.com/bits-and-blooms/bitset"
|
||||||
"github.com/charlienet/go-mixed/locker"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type memStore struct {
|
type memStore struct {
|
||||||
size uint
|
size uint
|
||||||
set *bitset.BitSet // 内存位图
|
set *bitset.BitSet // 内存位图
|
||||||
lock locker.RWLocker // 同步锁
|
lock sync.RWMutex // 同步锁
|
||||||
}
|
}
|
||||||
|
|
||||||
func newMemStore(size uint) *memStore {
|
func newMemStore(size uint) *memStore {
|
||||||
|
Reference in New Issue
Block a user