summaryrefslogtreecommitdiff
path: root/src/backend/port/win32_sema.c
diff options
context:
space:
mode:
authorAndres Freund <andres@anarazel.de>2015-02-03 23:25:00 +0100
committerAndres Freund <andres@anarazel.de>2015-02-03 23:25:00 +0100
commitd06995710bc7e347d39866c1793ae282498d65e0 (patch)
tree5d4de1a97f5518baba36e0b68864ac84e67ceef0 /src/backend/port/win32_sema.c
parent6753333f55e1d9bcb9da4323556b456583624a07 (diff)
downloadpostgresql-d06995710bc7e347d39866c1793ae282498d65e0.tar.gz
Remove the option to service interrupts during PGSemaphoreLock().
The remaining caller (lwlocks) doesn't need that facility, and we plan to remove ImmedidateInterruptOK entirely. That means that interrupts can't be serviced race-free and portably anyway, so there's little reason for keeping the feature. Reviewed-By: Heikki Linnakangas
Diffstat (limited to 'src/backend/port/win32_sema.c')
-rw-r--r--src/backend/port/win32_sema.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/backend/port/win32_sema.c b/src/backend/port/win32_sema.c
index f848ff82b0..011e2fd4a6 100644
--- a/src/backend/port/win32_sema.c
+++ b/src/backend/port/win32_sema.c
@@ -116,13 +116,11 @@ PGSemaphoreReset(PGSemaphore sema)
* Serve the interrupt if interruptOK is true.
*/
void
-PGSemaphoreLock(PGSemaphore sema, bool interruptOK)
+PGSemaphoreLock(PGSemaphore sema)
{
HANDLE wh[2];
bool done = false;
- ImmediateInterruptOK = interruptOK;
-
/*
* Note: pgwin32_signal_event should be first to ensure that it will be
* reported when multiple events are set. We want to guarantee that
@@ -173,8 +171,6 @@ PGSemaphoreLock(PGSemaphore sema, bool interruptOK)
break;
}
}
-
- ImmediateInterruptOK = false;
}
/*