mirror of
https://github.com/postgres/postgres.git
synced 2025-09-02 04:21:28 +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:
@@ -72,7 +72,7 @@ extern void PGSemaphoreCreate(PGSemaphore sema);
|
||||
extern void PGSemaphoreReset(PGSemaphore sema);
|
||||
|
||||
/* Lock a semaphore (decrement count), blocking if count would be < 0 */
|
||||
extern void PGSemaphoreLock(PGSemaphore sema, bool interruptOK);
|
||||
extern void PGSemaphoreLock(PGSemaphore sema);
|
||||
|
||||
/* Unlock a semaphore (increment count) */
|
||||
extern void PGSemaphoreUnlock(PGSemaphore sema);
|
||||
|
Reference in New Issue
Block a user