update lock && normal
This commit is contained in:
parent
1e39d020ed
commit
489e31b07a
@ -35,8 +35,10 @@ type common struct {
|
|||||||
//
|
//
|
||||||
// Date : 21:25 2023/12/24
|
// Date : 21:25 2023/12/24
|
||||||
func (c *common) initLock() {
|
func (c *common) initLock() {
|
||||||
|
if c.dataTableType == normalDataTableType {
|
||||||
c.lock = &sync.RWMutex{}
|
c.lock = &sync.RWMutex{}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Lock ...
|
// Lock ...
|
||||||
//
|
//
|
||||||
|
@ -12,7 +12,7 @@ package easymap
|
|||||||
// Author : go_developer@163.com<白茶清欢>
|
// Author : go_developer@163.com<白茶清欢>
|
||||||
//
|
//
|
||||||
// Date : 10:07 下午 2021/2/23
|
// Date : 10:07 下午 2021/2/23
|
||||||
func NewNormal(withLock bool) EasyMap {
|
func NewNormal() EasyMap {
|
||||||
em, _ := NewSegment(1, withLock)
|
em, _ := NewSegment(1)
|
||||||
return em
|
return em
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user