aboutsummaryrefslogtreecommitdiff
path: root/src/include/miscadmin.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/miscadmin.h')
-rw-r--r--src/include/miscadmin.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/include/miscadmin.h b/src/include/miscadmin.h
index d5b509fe511..5d4c3e09d45 100644
--- a/src/include/miscadmin.h
+++ b/src/include/miscadmin.h
@@ -12,7 +12,7 @@
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: miscadmin.h,v 1.136 2003/11/13 05:34:58 wieck Exp $
+ * $Id: miscadmin.h,v 1.137 2003/11/13 14:57:15 wieck Exp $
*
* NOTES
* some of the information in this file should be moved to
@@ -96,6 +96,13 @@ extern void ProcessInterrupts(void);
CritSectionCount--; \
} while(0)
+#define PG_DELAY(_msec) \
+{ \
+ struct timeval delay; \
+ delay.tv_sec = (_msec) / 1000; \
+ delay.tv_usec = ((_msec) % 1000) * 1000; \
+ (void) select(0, NULL, NULL, NULL, &delay); \
+}
/*****************************************************************************
* globals.h -- *