66 *
77 * Copyright (c) 1994, Regents of the University of California
88 *
9- * $Id: lock.h,v 1.30 1999/06/01 09:35:39 vadim Exp $
9+ * $Id: lock.h,v 1.31 1999/07/15 20:32:29 momjian Exp $
1010 *
1111 *-------------------------------------------------------------------------
1212 */
1919#include <utils/array.h>
2020
2121extern SPINLOCK LockMgrLock ;
22- typedef int MASK ;
22+ typedef int LOCKMASK ;
2323
2424#define INIT_TABLE_SIZE 100
2525#define MAX_TABLE_SIZE 1000
@@ -41,7 +41,7 @@ typedef int MASK;
4141typedef int LOCKMODE ;
4242typedef int LOCKMETHOD ;
4343
44- /* MAX_LOCKMODES cannot be larger than the bits inMASK */
44+ /* MAX_LOCKMODES cannot be larger than the bits inLOCKMASK */
4545#define MAX_LOCKMODES 8
4646
4747/*
@@ -241,7 +241,7 @@ extern SPINLOCK LockMgrLock;
241241 */
242242extern void InitLocks (void );
243243extern void LockDisable (int status );
244- extern LOCKMETHOD LockMethodTableInit (char * tabName ,MASK * conflictsP ,
244+ extern LOCKMETHOD LockMethodTableInit (char * tabName ,LOCKMASK * conflictsP ,
245245int * prioP ,int numModes );
246246extern LOCKMETHOD LockMethodTableRename (LOCKMETHOD lockmethod );
247247extern bool LockAcquire (LOCKMETHOD lockmethod ,LOCKTAG * locktag ,