From 51d7e25651731836a8da89720c2180f82bc88096 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Thu, 26 Aug 2004 17:22:28 +0000 Subject: [PATCH] Improve some comments. --- src/include/storage/lock.h | 45 +++++++++++++++++++++----------------- 1 file changed, 25 insertions(+), 20 deletions(-) diff --git a/src/include/storage/lock.h b/src/include/storage/lock.h index 1289fee7ec..0c0c66077f 100644 --- a/src/include/storage/lock.h +++ b/src/include/storage/lock.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/storage/lock.h,v 1.79 2004/07/17 03:31:26 tgl Exp $ + * $PostgreSQL: pgsql/src/include/storage/lock.h,v 1.80 2004/08/26 17:22:28 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -26,10 +26,10 @@ typedef struct PROC_QUEUE int size; /* number of entries in list */ } PROC_QUEUE; -/* struct PGPROC is declared in storage/proc.h, but must forward-reference it */ +/* struct PGPROC is declared in proc.h, but must forward-reference it */ typedef struct PGPROC PGPROC; - +/* GUC variables */ extern int max_locks_per_xact; #ifdef LOCK_DEBUG @@ -41,6 +41,11 @@ extern bool Debug_deadlocks; #endif /* LOCK_DEBUG */ +/* + * LOCKMODE is an integer (1..N) indicating a lock type. LOCKMASK is a bit + * mask indicating a set of held or requested lock types (the bit 1<