@@ -1298,14 +1298,10 @@ LWLockAcquire(LWLock *lock, LWLockMode mode)
1298
1298
/*
1299
1299
* Wait until awakened.
1300
1300
*
1301
- * Since we share the process wait semaphore with the regular lock
1302
- * manager and ProcWaitForSignal, and we may need to acquire an LWLock
1303
- * while one of those is pending, it is possible that we get awakened
1304
- * for a reason other than being signaled by LWLockRelease. If so,
1305
- * loop back and wait again. Once we've gotten the LWLock,
1306
- * re-increment the sema by the number of additional signals received,
1307
- * so that the lock manager or signal manager will see the received
1308
- * signal when it next waits.
1301
+ * It is possible that we get awakened for a reason other than being
1302
+ * signaled by LWLockRelease. If so, loop back and wait again. Once
1303
+ * we've gotten the LWLock, re-increment the sema by the number of
1304
+ * additional signals received.
1309
1305
*/
1310
1306
LOG_LWDEBUG ("LWLockAcquire" , lock , "waiting" );
1311
1307
@@ -1470,8 +1466,7 @@ LWLockAcquireOrWait(LWLock *lock, LWLockMode mode)
1470
1466
{
1471
1467
/*
1472
1468
* Wait until awakened. Like in LWLockAcquire, be prepared for
1473
- * bogus wakeups, because we share the semaphore with
1474
- * ProcWaitForSignal.
1469
+ * bogus wakeups.
1475
1470
*/
1476
1471
LOG_LWDEBUG ("LWLockAcquireOrWait" , lock , "waiting" );
1477
1472
@@ -1684,14 +1679,10 @@ LWLockWaitForVar(LWLock *lock, uint64 *valptr, uint64 oldval, uint64 *newval)
1684
1679
/*
1685
1680
* Wait until awakened.
1686
1681
*
1687
- * Since we share the process wait semaphore with the regular lock
1688
- * manager and ProcWaitForSignal, and we may need to acquire an LWLock
1689
- * while one of those is pending, it is possible that we get awakened
1690
- * for a reason other than being signaled by LWLockRelease. If so,
1691
- * loop back and wait again. Once we've gotten the LWLock,
1692
- * re-increment the sema by the number of additional signals received,
1693
- * so that the lock manager or signal manager will see the received
1694
- * signal when it next waits.
1682
+ * It is possible that we get awakened for a reason other than being
1683
+ * signaled by LWLockRelease. If so, loop back and wait again. Once
1684
+ * we've gotten the LWLock, re-increment the sema by the number of
1685
+ * additional signals received.
1695
1686
*/
1696
1687
LOG_LWDEBUG ("LWLockWaitForVar" , lock , "waiting" );
1697
1688
0 commit comments