summaryrefslogtreecommitdiff
path: root/src/include/storage/lwlock.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/storage/lwlock.h')
-rw-r--r--src/include/storage/lwlock.h40
1 files changed, 20 insertions, 20 deletions
diff --git a/src/include/storage/lwlock.h b/src/include/storage/lwlock.h
index 02610d3541e..1725fc3b73d 100644
--- a/src/include/storage/lwlock.h
+++ b/src/include/storage/lwlock.h
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: lwlock.h,v 1.1 2001/09/29 04:02:26 tgl Exp $
+ * $Id: lwlock.h,v 1.2 2001/10/25 05:50:10 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -18,37 +18,38 @@
* We have a number of predefined LWLocks, plus a bunch of LWLocks that are
* dynamically assigned (for shared buffers). The LWLock structures live
* in shared memory (since they contain shared data) and are identified by
- * values of this enumerated type. We abuse the notion of an enum somewhat
+ * values of this enumerated type. We abuse the notion of an enum somewhat
* by allowing values not listed in the enum declaration to be assigned.
* The extra value MaxDynamicLWLock is there to keep the compiler from
* deciding that the enum can be represented as char or short ...
*/
typedef enum LWLockId
{
- BufMgrLock,
- LockMgrLock,
- OidGenLock,
- XidGenLock,
- ShmemIndexLock,
- SInvalLock,
- FreeSpaceLock,
- MMCacheLock,
- WALInsertLock,
- WALWriteLock,
- ControlFileLock,
- CheckpointLock,
- CLogControlLock,
+ BufMgrLock,
+ LockMgrLock,
+ OidGenLock,
+ XidGenLock,
+ ShmemIndexLock,
+ SInvalLock,
+ FreeSpaceLock,
+ MMCacheLock,
+ WALInsertLock,
+ WALWriteLock,
+ ControlFileLock,
+ CheckpointLock,
+ CLogControlLock,
- NumFixedLWLocks, /* must be last except for MaxDynamicLWLock */
+ NumFixedLWLocks,/* must be last except for
+ * MaxDynamicLWLock */
- MaxDynamicLWLock = 1000000000
+ MaxDynamicLWLock = 1000000000
} LWLockId;
typedef enum LWLockMode
{
- LW_EXCLUSIVE,
- LW_SHARED
+ LW_EXCLUSIVE,
+ LW_SHARED
} LWLockMode;
@@ -65,5 +66,4 @@ extern void LWLockReleaseAll(void);
extern int NumLWLocks(void);
extern int LWLockShmemSize(void);
extern void CreateLWLocks(void);
-
#endif /* LWLOCK_H */