MCPcopy Create free account
hub / github.com/egonelbre/exp / SetReaderThreshold

Method SetReaderThreshold

sync2/biasedmutex.go:43–43  ·  view source on GitHub ↗
(x int)

Source from the content-addressed store, hash-verified

41}
42
43func (m *BiasedMutex) SetReaderThreshold(x int) { m.readerThreshold = int32(x) }
44func (m *BiasedMutex) SetWriterThreshold(x int) { m.writerThreshold = int32(x) }
45
46func (m *BiasedMutex) RLock() {

Callers 1

TestBiasedMutexProgressFunction · 0.95

Calls

no outgoing calls

Tested by 1

TestBiasedMutexProgressFunction · 0.76