@@ -1222,14 +1222,10 @@ LWLockAcquire(LWLock *lock, LWLockMode mode)
1222
1222
/*
1223
1223
* Wait until awakened.
1224
1224
*
1225
- * Since we share the process wait semaphore with the regular lock
1226
- * manager and ProcWaitForSignal, and we may need to acquire an LWLock
1227
- * while one of those is pending, it is possible that we get awakened
1228
- * for a reason other than being signaled by LWLockRelease. If so,
1229
- * loop back and wait again. Once we've gotten the LWLock,
1230
- * re-increment the sema by the number of additional signals received,
1231
- * so that the lock manager or signal manager will see the received
1232
- * signal when it next waits.
1225
+ * It is possible that we get awakened for a reason other than being
1226
+ * signaled by LWLockRelease. If so, loop back and wait again. Once
1227
+ * we've gotten the LWLock, re-increment the sema by the number of
1228
+ * additional signals received.
1233
1229
*/
1234
1230
LOG_LWDEBUG ("LWLockAcquire" , lock , "waiting" );
1235
1231
@@ -1389,8 +1385,7 @@ LWLockAcquireOrWait(LWLock *lock, LWLockMode mode)
1389
1385
{
1390
1386
/*
1391
1387
* Wait until awakened. Like in LWLockAcquire, be prepared for
1392
- * bogus wakeups, because we share the semaphore with
1393
- * ProcWaitForSignal.
1388
+ * bogus wakeups.
1394
1389
*/
1395
1390
LOG_LWDEBUG ("LWLockAcquireOrWait" , lock , "waiting" );
1396
1391
@@ -1599,14 +1594,10 @@ LWLockWaitForVar(LWLock *lock, uint64 *valptr, uint64 oldval, uint64 *newval)
1599
1594
/*
1600
1595
* Wait until awakened.
1601
1596
*
1602
- * Since we share the process wait semaphore with the regular lock
1603
- * manager and ProcWaitForSignal, and we may need to acquire an LWLock
1604
- * while one of those is pending, it is possible that we get awakened
1605
- * for a reason other than being signaled by LWLockRelease. If so,
1606
- * loop back and wait again. Once we've gotten the LWLock,
1607
- * re-increment the sema by the number of additional signals received,
1608
- * so that the lock manager or signal manager will see the received
1609
- * signal when it next waits.
1597
+ * It is possible that we get awakened for a reason other than being
1598
+ * signaled by LWLockRelease. If so, loop back and wait again. Once
1599
+ * we've gotten the LWLock, re-increment the sema by the number of
1600
+ * additional signals received.
1610
1601
*/
1611
1602
LOG_LWDEBUG ("LWLockWaitForVar" , lock , "waiting" );
1612
1603
0 commit comments