Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitfad0f9d

Browse files
committed
Remove unused, and dangerous, TestLatch() macro.
The macro has not seen any in-tree use since latches had been introducedin2746e5f, in 2010.
1 parent0bf3ae8 commitfad0f9d

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
externvoidSetLatch(volatileLatch*latch);
117117
externvoidResetLatch(volatileLatch*latch);
118118

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

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp