forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitb91dd9d
committed
Forward received condition variable signals on cancel.
After a process decides not to wait for a condition variable, it canstill consume a signal before it reaches ConditionVariableCancelSleep().In that case, pass the signal on to another waiter if possible, so thata signal doesn't go missing when there is another process ready toreceive it.Author: Thomas MunroReviewed-by: Shawn DebnathDiscussion:https://postgr.es/m/CA%2BhUKGLQ_RW%2BXs8znDn36e-%2Bmq2--zrPemBqTQ8eKT-VO1OF4Q%40mail.gmail.com1 parent1321509 commitb91dd9d
1 file changed
+11
-0
lines changedLines changed: 11 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
245 | 245 |
| |
246 | 246 |
| |
247 | 247 |
| |
| 248 | + | |
248 | 249 |
| |
249 | 250 |
| |
250 | 251 |
| |
251 | 252 |
| |
252 | 253 |
| |
253 | 254 |
| |
254 | 255 |
| |
| 256 | + | |
| 257 | + | |
255 | 258 |
| |
256 | 259 |
| |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
257 | 268 |
| |
258 | 269 |
| |
259 | 270 |
| |
|
0 commit comments
Comments
(0)