mirror of
https://github.com/postgres/postgres.git
synced 2025-07-11 10:01:57 +03:00
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
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user