crash.software
Projects
Pull Requests
Issues
Builds
dolt
Code
Files
Commits
Branches
Tags
Pull Requests
Code Comments
Code Compare
Issues
List
Boards
Milestones
Builds
Statistics
Contributions
Source Lines
Child Projects
Projects
STRLCPY
dolt
Files
🤬
Sign In
9becfc9d
ROOT
/
go
/
libraries
/
utils
/
async
/
ring_buffer.go
Search
History
186 lines
|
ISO-8859-1
|
4 KB
Blame
Outline
2
4
8
No wrap
Soft wrap
Outline
RingBuffer
cond
:
*sync.Cond
allocSize
:
int
closed
:
bool
epoch
:
int
headPos
:
int
tailPos
:
int
headSlice
:
int
tailSlice
:
int
items
:
[][]interface{}
ErrWrongEpoch
NewRingBuffer
(allocSize int)
:
*RingBuffer
*RingBuffer
Reset
()
:
int
Close
()
:
error
Push
(item interface{}, epoch int)
:
error
noLockPop
()
:
(interface{}, bool)
TryPop
()
:
(item interface{}, ok bool)
Pop
()
:
(item interface{}, err error)
All occurrences
Please wait...
Page is in error, reload to recover