diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2005-10-25 15:15:16 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2005-10-25 15:15:16 +0000 |
commit | 25777f6fd312b3f3e32edb921d79e3d8c7b499a6 (patch) | |
tree | d69976608fc3d97df70ed1f50a944f4e1a2ec036 /src/backend/port/win32/signal.c | |
parent | b83547201fb321bca43276911d6839ab7ad7e7f7 (diff) | |
download | postgresql-25777f6fd312b3f3e32edb921d79e3d8c7b499a6.tar.gz postgresql-25777f6fd312b3f3e32edb921d79e3d8c7b499a6.zip |
Fix Windows setitimer() emulation to not depend on delivering an APC
to the main thread. This allows removal of WaitForSingleObjectEx() calls
from the main thread, thereby allowing us to re-enable Qingqing Zhou's
CHECK_FOR_INTERRUPTS performance improvement. Qingqing, Magnus, et al.
Diffstat (limited to 'src/backend/port/win32/signal.c')
-rw-r--r-- | src/backend/port/win32/signal.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/src/backend/port/win32/signal.c b/src/backend/port/win32/signal.c index fa7d8cf6a2c..3204c9c20e1 100644 --- a/src/backend/port/win32/signal.c +++ b/src/backend/port/win32/signal.c @@ -6,7 +6,7 @@ * Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/port/win32/signal.c,v 1.13 2005/10/21 21:43:45 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/port/win32/signal.c,v 1.14 2005/10/25 15:15:16 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -90,16 +90,6 @@ pgwin32_signal_initialize(void) } /* - * Support routine for CHECK_FOR_INTERRUPTS() macro - */ -void -pgwin32_check_queued_signals(void) -{ - if (WaitForSingleObjectEx(pgwin32_signal_event, 0, TRUE) == WAIT_OBJECT_0) - pgwin32_dispatch_queued_signals(); -} - -/* * Dispatch all signals currently queued and not blocked * Blocked signals are ignored, and will be fired at the time of * the sigsetmask() call. |