| 204 | } |
| 205 | |
| 206 | void |
| 207 | SwitchToSharedLatch(void) |
| 208 | { |
| 209 | Assert(MyLatch == &LocalLatchData); |
| 210 | Assert(MyProc != NULL); |
| 211 | |
| 212 | MyLatch = &MyProc->procLatch; |
| 213 | |
| 214 | if (FeBeWaitSet) |
| 215 | ModifyWaitEvent(FeBeWaitSet, FeBeWaitSetLatchPos, WL_LATCH_SET, |
| 216 | MyLatch); |
| 217 | |
| 218 | /* |
| 219 | * Set the shared latch as the local one might have been set. This |
| 220 | * shouldn't normally be necessary as code is supposed to check the |
| 221 | * condition before waiting for the latch, but a bit care can't hurt. |
| 222 | */ |
| 223 | SetLatch(MyLatch); |
| 224 | } |
| 225 | |
| 226 | void |
| 227 | SwitchBackToLocalLatch(void) |
no test coverage detected