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

Commit3dfce37

Browse files
committed
Fix typos in comment.
Plus some tiny wordsmithing of not-quite-typos.
1 parent7391e25 commit3dfce37

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@ extern void pg_spinlock_barrier(void);
3838
#ifndefpg_compiler_barrier_impl
3939
/*
4040
* If the compiler/arch combination does not provide compiler barriers,
41-
* provide a fallback.Thatfallback simply consistsoutof a function call
42-
*into a externally defined function. That should guarantee compiler barrier
41+
* provide a fallback. Thefallback simply consists of a function call into
42+
*an externally defined function. That should guarantee compiler barrier
4343
* semantics except for compilers that do inter translation unit/global
4444
* optimization - those better provide an actual compiler barrier.
4545
*
46-
*Using a native compiler barrier for sure is a lot faster than this...
46+
*A native compiler barrier for sure is a lot faster than this...
4747
*/
4848
#definePG_HAVE_COMPILER_BARRIER_EMULATION
4949
externvoidpg_extern_compiler_barrier(void);
@@ -52,7 +52,7 @@ extern void pg_extern_compiler_barrier(void);
5252

5353

5454
/*
55-
* If we have atomics implementation for this platform fall back to providing
55+
* If we have atomics implementation for this platform, fall back to providing
5656
* the atomics API using a spinlock to protect the internal state. Possibly
5757
* the spinlock implementation uses semaphores internally...
5858
*
@@ -122,7 +122,7 @@ pg_atomic_unlocked_test_flag_impl(volatile pg_atomic_flag *ptr)
122122
/*
123123
* Can't do this efficiently in the semaphore based implementation - we'd
124124
* have to try to acquire the semaphore - so always return true. That's
125-
* correct, because this is only an unlocked test anyway.Do this in the
125+
* correct, because this is only an unlocked test anyway.Do this in the
126126
* header so compilers can optimize the test away.
127127
*/
128128
return true;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp