MCPcopy
hub / github.com/dropbox/godropbox / WUnlock

Method WUnlock

sync2/boundedrwlock.go:124–129  ·  view source on GitHub ↗

Unlock the write lock. Should be called only on a goroutine which has gotten a non-error return value from WLock().

()

Source from the content-addressed store, hash-verified

122// Should be called only on a goroutine which has gotten a non-error return
123// value from WLock().
124func (rw *BoundedRWLock) WUnlock() {
125 rw.control.Lock()
126 rw.nextWriter = nil
127 rw.processQueue()
128 rw.control.Unlock()
129}
130
131// Walks the queue of eligible waiters (if any) and wakes them (if they're not
132// timed out).

Callers 3

TestWriterTimeoutMethod · 0.95
TestReaderTimeoutMethod · 0.95
stressRWMutexFunction · 0.95

Calls 3

processQueueMethod · 0.95
LockMethod · 0.65
UnlockMethod · 0.65

Tested by 3

TestWriterTimeoutMethod · 0.76
TestReaderTimeoutMethod · 0.76
stressRWMutexFunction · 0.76