Skip to content

Commit fad0f9d

Browse files
committed
Remove unused, and dangerous, TestLatch() macro.
The macro has not seen any in-tree use since latches had been introduced in 2746e5f, in 2010.
1 parent 0bf3ae8 commit fad0f9d

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/include/storage/latch.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,6 @@ extern int WaitLatchOrSocket(volatile Latch *latch, int wakeEvents,
116116
extern void SetLatch(volatile Latch *latch);
117117
extern void ResetLatch(volatile Latch *latch);
118118

119-
/* beware of memory ordering issues if you use this macro! */
120-
#define TestLatch(latch) (((volatile Latch *) (latch))->is_set)
121119

122120
/*
123121
* Unix implementation uses SIGUSR1 for inter-process signaling.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy