(writer bool)
| 181 | } |
| 182 | |
| 183 | func newWait(writer bool) *rwwait { |
| 184 | return &rwwait{writer, make(chan bool, 1), 1} |
| 185 | } |
| 186 | |
| 187 | // Wait for a signal on the waiter, with the guarantee that both goroutines |
| 188 | // will agree on whether or not the signal was delivered. |