MCPcopy Create free account
hub / github.com/Monibuca/engine / ReaderTryEnter

Method ReaderTryEnter

util/ring-writer.go:18–18  ·  view source on GitHub ↗

读取者数量+1

()

Source from the content-addressed store, hash-verified

16 Ready() // 标记为可读取
17 ReaderEnter() // 读取者数量+1
18 ReaderTryEnter() bool // 尝试读取
19 ReaderLeave() // 读取者数量-1
20 StartWrite() bool // 开始写入
21 SetSequence(uint32) // 设置序号

Callers 1

TryReadMethod · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected