6
6
*
7
7
* Copyright (c) 1994, Regents of the University of California
8
8
*
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 $
10
10
*
11
11
*-------------------------------------------------------------------------
12
12
*/
19
19
#include <utils/array.h>
20
20
21
21
extern SPINLOCK LockMgrLock ;
22
- typedef int MASK ;
22
+ typedef int LOCKMASK ;
23
23
24
24
#define INIT_TABLE_SIZE 100
25
25
#define MAX_TABLE_SIZE 1000
@@ -41,7 +41,7 @@ typedef int MASK;
41
41
typedef int LOCKMODE ;
42
42
typedef int LOCKMETHOD ;
43
43
44
- /* MAX_LOCKMODES cannot be larger than the bits inMASK */
44
+ /* MAX_LOCKMODES cannot be larger than the bits inLOCKMASK */
45
45
#define MAX_LOCKMODES 8
46
46
47
47
/*
@@ -241,7 +241,7 @@ extern SPINLOCK LockMgrLock;
241
241
*/
242
242
extern void InitLocks (void );
243
243
extern void LockDisable (int status );
244
- extern LOCKMETHOD LockMethodTableInit (char * tabName ,MASK * conflictsP ,
244
+ extern LOCKMETHOD LockMethodTableInit (char * tabName ,LOCKMASK * conflictsP ,
245
245
int * prioP ,int numModes );
246
246
extern LOCKMETHOD LockMethodTableRename (LOCKMETHOD lockmethod );
247
247
extern bool LockAcquire (LOCKMETHOD lockmethod ,LOCKTAG * locktag ,