static LWLockTrancheShmemData *LWLockTranches;
-/* backend-local copy of NamedLWLockTranches->num_user_defined */
+/* backend-local copy of LWLockTranches->num_user_defined */
static int LocalNumUserDefinedTranches;
/*
}
/*
- * Initialize LWLocks that are fixed and those belonging to named tranches.
+ * Initialize LWLocks for built-in tranches and those requested with
+ * RequestNamedLWLockTranche().
*/
static void
InitializeLWLocks(int numLocks)
LWLockInitialize(&MainLWLockArray[pos++].lock, LWTRANCHE_PREDICATE_LOCK_MANAGER);
/*
- * Copy the info about any named tranches into shared memory (so that
- * other processes can see it), and initialize the requested LWLocks.
+ * Copy the info about any user-defined tranches into shared memory (so
+ * that other processes can see it), and initialize the requested LWLocks.
*/
Assert(pos == NUM_FIXED_LWLOCKS);
foreach_ptr(NamedLWLockTrancheRequest, request, NamedLWLockTrancheRequests)
/*
* Obtain the position of base address of LWLock belonging to requested
- * tranche_name in MainLWLockArray. LWLocks for named tranches are placed
- * in MainLWLockArray after fixed locks.
+ * tranche_name in MainLWLockArray. LWLocks for user-defined tranches
+ * requested with RequestNamedLWLockTranche() are placed in
+ * MainLWLockArray after fixed locks.
*/
for (int i = 0; i < LocalNumUserDefinedTranches; i++)
{