Documentation ¶
Index ¶
Constants ¶
View Source
const ( DEFAULT_RING_LEN = 1024 SMALL_BUF_SIZE = 1024 MIDDLE_BUF_SIZE = 2048 // By default, the PAGE_SIZE is 4096 Bytes. // so may be more efficient for slices? BIG_BUF_SIZE = 4096 // 2MB per HUGE PAGE HUGE_PAGE_SIZE = 1024 * 1024 * 2 // 5 Minute per cleaning period SWEEP_POOL_EXPIRE = 300 )
View Source
const ( READING_POOL = iota WRITING_POOL READING_LEFT WRITING_LEFT )
Variables ¶
View Source
var ( POOL_EMPTY = errors.New("pool is empty") BUFFER_EMPTY = errors.New("buffer is empty") )
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.