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

Commit69c32b8

Browse files
Fix fallback implementation for pg_atomic_test_set_flag().
The fallback implementation of pg_atomic_test_set_flag() that usesatomic-exchange gives pg_atomic_exchange_u32_impl() an extraargument. This issue has been present since the introduction ofthe atomics API in commitb64d92f.Reviewed-by: Andres FreundDiscussion:https://postgr.es/m/20231114035439.GA1809032%40nathanxps13Backpatch-through: 12
1 parent6a72c42 commit69c32b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/include/port/atomics/generic.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ pg_atomic_init_flag_impl(volatile pg_atomic_flag *ptr)
8383
staticinlinebool
8484
pg_atomic_test_set_flag_impl(volatilepg_atomic_flag*ptr)
8585
{
86-
returnpg_atomic_exchange_u32_impl(ptr,&value,1)==0;
86+
returnpg_atomic_exchange_u32_impl(ptr,1)==0;
8787
}
8888

8989
#definePG_HAVE_ATOMIC_UNLOCKED_TEST_FLAG

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp