diff options
author | Bruce Momjian <bruce@momjian.us> | 1999-02-15 03:22:37 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 1999-02-15 03:22:37 +0000 |
commit | ba2883b264d7bc392604bc9f76abfc30de89f5f8 (patch) | |
tree | 67aaa53cf2b12967f12b8fabaad7088ffcddb550 /src/include/storage/proc.h | |
parent | 944d3c395e292c213c1a2be617af1b8473299b1b (diff) |
Remove duplicate geqo functions, and more optimizer cleanup
Diffstat (limited to 'src/include/storage/proc.h')
-rw-r--r-- | src/include/storage/proc.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/include/storage/proc.h b/src/include/storage/proc.h index aae5b704427..e58572b0c77 100644 --- a/src/include/storage/proc.h +++ b/src/include/storage/proc.h @@ -6,7 +6,7 @@ * * Copyright (c) 1994, Regents of the University of California * - * $Id: proc.h,v 1.17 1999/02/13 23:22:09 momjian Exp $ + * $Id: proc.h,v 1.18 1999/02/15 03:22:37 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -75,8 +75,15 @@ typedef struct procglobal extern PROC *MyProc; -#define PROC_INCR_SLOCK(lock) if (MyProc) ((MyProc->sLocks[(lock)])++) -#define PROC_DECR_SLOCK(lock) if (MyProc) ((MyProc->sLocks[(lock)])--) +#define PROC_INCR_SLOCK(lock) \ +do { \ + if (MyProc) (MyProc->sLocks[(lock)])++; \ +} while (0) + +#define PROC_DECR_SLOCK(lock) \ +do { \ + if (MyProc) (MyProc->sLocks[(lock)])--; \ +} while (0) /* * flags explaining why process woke up |