mirror of
https://github.com/Monibuca/engine.git
synced 2025-10-17 22:21:46 +08:00
修改命名
This commit is contained in:
11
ring.go
11
ring.go
@@ -43,6 +43,17 @@ func (r *Ring) GoBack() {
|
||||
r.Index--
|
||||
r.RingItem = r.buffer[r.Index]
|
||||
}
|
||||
func (r *Ring) NextW() {
|
||||
r.Index++
|
||||
item := r.RingItem
|
||||
r.RingItem = r.buffer[r.Index]
|
||||
r.RingItem.Lock()
|
||||
item.UnLock()
|
||||
}
|
||||
func (r *Ring) NextR() {
|
||||
r.RingItem.RUnlock()
|
||||
r.GoNext()
|
||||
}
|
||||
func (r Ring) Clone() *Ring {
|
||||
return &r
|
||||
}
|
||||
|
Reference in New Issue
Block a user