Unlock the write lock. Should be called only on a goroutine which has gotten a non-error return value from WLock().
()
| 122 | // Should be called only on a goroutine which has gotten a non-error return |
| 123 | // value from WLock(). |
| 124 | func (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). |