@@ -1307,14 +1307,10 @@ LWLockAcquire(LWLock *lock, LWLockMode mode)
1307
1307
/*
1308
1308
* Wait until awakened.
1309
1309
*
1310
- * Since we share the process wait semaphore with the regular lock
1311
- * manager and ProcWaitForSignal, and we may need to acquire an LWLock
1312
- * while one of those is pending, it is possible that we get awakened
1313
- * for a reason other than being signaled by LWLockRelease. If so,
1314
- * loop back and wait again. Once we've gotten the LWLock,
1315
- * re-increment the sema by the number of additional signals received,
1316
- * so that the lock manager or signal manager will see the received
1317
- * signal when it next waits.
1310
+ * It is possible that we get awakened for a reason other than being
1311
+ * signaled by LWLockRelease. If so, loop back and wait again. Once
1312
+ * we've gotten the LWLock, re-increment the sema by the number of
1313
+ * additional signals received.
1318
1314
*/
1319
1315
LOG_LWDEBUG ("LWLockAcquire" , lock , "waiting" );
1320
1316
@@ -1479,8 +1475,7 @@ LWLockAcquireOrWait(LWLock *lock, LWLockMode mode)
1479
1475
{
1480
1476
/*
1481
1477
* Wait until awakened. Like in LWLockAcquire, be prepared for
1482
- * bogus wakeups, because we share the semaphore with
1483
- * ProcWaitForSignal.
1478
+ * bogus wakeups.
1484
1479
*/
1485
1480
LOG_LWDEBUG ("LWLockAcquireOrWait" , lock , "waiting" );
1486
1481
@@ -1693,14 +1688,10 @@ LWLockWaitForVar(LWLock *lock, uint64 *valptr, uint64 oldval, uint64 *newval)
1693
1688
/*
1694
1689
* Wait until awakened.
1695
1690
*
1696
- * Since we share the process wait semaphore with the regular lock
1697
- * manager and ProcWaitForSignal, and we may need to acquire an LWLock
1698
- * while one of those is pending, it is possible that we get awakened
1699
- * for a reason other than being signaled by LWLockRelease. If so,
1700
- * loop back and wait again. Once we've gotten the LWLock,
1701
- * re-increment the sema by the number of additional signals received,
1702
- * so that the lock manager or signal manager will see the received
1703
- * signal when it next waits.
1691
+ * It is possible that we get awakened for a reason other than being
1692
+ * signaled by LWLockRelease. If so, loop back and wait again. Once
1693
+ * we've gotten the LWLock, re-increment the sema by the number of
1694
+ * additional signals received.
1704
1695
*/
1705
1696
LOG_LWDEBUG ("LWLockWaitForVar" , lock , "waiting" );
1706
1697
0 commit comments