77 * Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
88 * Portions Copyright (c) 1994, Regents of the University of California
99 *
10- * $Id: lock.h,v 1.63 2002/07/19 00:17:40 momjian Exp $
10+ * $Id: lock.h,v 1.64 2002/08/01 05:18:34 momjian Exp $
1111 *
1212 *-------------------------------------------------------------------------
1313 */
@@ -80,10 +80,6 @@ typedef int LOCKMETHOD;
8080 * type conflicts. conflictTab[i] is a mask with the j-th bit
8181 * turned on if lock types i and j conflict.
8282 *
83- * prio -- each lockmode has a priority, so, for example, waiting
84- * writers can be given priority over readers (to avoid
85- * starvation). XXX this field is not actually used at present!
86- *
8783 * masterLock -- synchronizes access to the table
8884 *
8985 */
@@ -94,7 +90,6 @@ typedef struct LOCKMETHODTABLE
9490 LOCKMETHOD lockmethod ;
9591 int numLockModes ;
9692 int conflictTab [MAX_LOCKMODES ];
97- int prio [MAX_LOCKMODES ];
9893 LWLockId masterLock ;
9994} LOCKMETHODTABLE ;
10095
@@ -215,7 +210,7 @@ typedef struct PROCLOCK
215210extern void InitLocks (void );
216211extern LOCKMETHODTABLE * GetLocksMethodTable (LOCK * lock );
217212extern LOCKMETHOD LockMethodTableInit (char * tabName , LOCKMASK * conflictsP ,
218- int * prioP , int numModes , int maxBackends );
213+ int numModes , int maxBackends );
219214extern LOCKMETHOD LockMethodTableRename (LOCKMETHOD lockmethod );
220215extern bool LockAcquire (LOCKMETHOD lockmethod , LOCKTAG * locktag ,
221216 TransactionId xid , LOCKMODE lockmode , bool dontWait );
0 commit comments