mirror of
https://github.com/postgres/postgres.git
synced 2025-05-31 00:01:57 -04:00
Remove unused, and dangerous, TestLatch() macro.
The macro has not seen any in-tree use since latches had been introduced in 2746e5f, in 2010.
This commit is contained in:
parent
0bf3ae88af
commit
fad0f9d8c9
@ -116,8 +116,6 @@ extern int WaitLatchOrSocket(volatile Latch *latch, int wakeEvents,
|
||||
extern void SetLatch(volatile Latch *latch);
|
||||
extern void ResetLatch(volatile Latch *latch);
|
||||
|
||||
/* beware of memory ordering issues if you use this macro! */
|
||||
#define TestLatch(latch) (((volatile Latch *) (latch))->is_set)
|
||||
|
||||
/*
|
||||
* Unix implementation uses SIGUSR1 for inter-process signaling.
|
||||
|
Loading…
x
Reference in New Issue
Block a user