Skip to content

Commit 3dfce37

Browse files
committed
Fix typos in comment.
Plus some tiny wordsmithing of not-quite-typos.
1 parent 7391e25 commit 3dfce37

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
#ifndef pg_compiler_barrier_impl
3939
/*
4040
* If the compiler/arch combination does not provide compiler barriers,
41-
* provide a fallback. That fallback simply consists out of a function call
42-
* into a externally defined function. That should guarantee compiler barrier
41+
* provide a fallback. The fallback 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
#define PG_HAVE_COMPILER_BARRIER_EMULATION
4949
extern void pg_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)
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