1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-11 20:28:21 +03:00

Remove sleep() and use single PG_SLEEP call for Win32 signal handling

and consistency.

Change PG_USLEEP to use SleepEx() for signal interuptability.
This commit is contained in:
Bruce Momjian
2004-01-30 15:57:04 +00:00
parent 777babeced
commit 5ee2ae2049
2 changed files with 4 additions and 7 deletions

View File

@ -12,7 +12,7 @@
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $PostgreSQL: pgsql/src/include/miscadmin.h,v 1.148 2004/01/26 22:59:53 momjian Exp $
* $PostgreSQL: pgsql/src/include/miscadmin.h,v 1.149 2004/01/30 15:57:04 momjian Exp $
*
* NOTES
* some of the information in this file should be moved to
@ -109,7 +109,7 @@ do { \
#else
#define PG_USLEEP(_usec) \
do { \
Sleep((_usec) < 500 ? 1 : ((_usec)+500)/ 1000); \
SleepEx(((_usec) < 500 ? 1 : ((_usec) + 500) / 1000), TRUE); \
} while(0)
#endif