Content-Length: 257909 | pFad | http://github.com/postgrespro/postgres_cluster/commit/fad0f9d8c9f6a8e99156b8f01cba54be39f31761

0B Remove unused, and dangerous, TestLatch() macro. · postgrespro/postgres_cluster@fad0f9d · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/fad0f9d8c9f6a8e99156b8f01cba54be39f31761

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy