Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
3dfce376
Commit
3dfce376
authored
10 years ago
by
Heikki Linnakangas
Browse files
Options
Downloads
Patches
Plain Diff
Fix typos in comment.
Plus some tiny wordsmithing of not-quite-typos.
parent
7391e251
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/include/port/atomics/fallback.h
+5
-5
5 additions, 5 deletions
src/include/port/atomics/fallback.h
with
5 additions
and
5 deletions
src/include/port/atomics/fallback.h
+
5
−
5
View file @
3dfce376
...
@@ -38,12 +38,12 @@ extern void pg_spinlock_barrier(void);
...
@@ -38,12 +38,12 @@ extern void pg_spinlock_barrier(void);
#ifndef pg_compiler_barrier_impl
#ifndef pg_compiler_barrier_impl
/*
/*
* If the compiler/arch combination does not provide compiler barriers,
* If the compiler/arch combination does not provide compiler barriers,
* provide a fallback. Th
at
fallback simply consists
out
of a function call
* provide a fallback.
Th
e
fallback simply consists of a function call
into
*
into
a externally defined function. That should guarantee compiler barrier
* a
n
externally defined function. That should guarantee compiler barrier
* semantics except for compilers that do inter translation unit/global
* semantics except for compilers that do inter translation unit/global
* optimization - those better provide an actual compiler barrier.
* optimization - those better provide an actual compiler barrier.
*
*
*
Using a
native compiler barrier for sure is a lot faster than this...
*
A
native compiler barrier for sure is a lot faster than this...
*/
*/
#define PG_HAVE_COMPILER_BARRIER_EMULATION
#define PG_HAVE_COMPILER_BARRIER_EMULATION
extern
void
pg_extern_compiler_barrier
(
void
);
extern
void
pg_extern_compiler_barrier
(
void
);
...
@@ -52,7 +52,7 @@ extern void pg_extern_compiler_barrier(void);
...
@@ -52,7 +52,7 @@ extern void pg_extern_compiler_barrier(void);
/*
/*
* If we have atomics implementation for this platform fall back to providing
* If we have atomics implementation for this platform
,
fall back to providing
* the atomics API using a spinlock to protect the internal state. Possibly
* the atomics API using a spinlock to protect the internal state. Possibly
* the spinlock implementation uses semaphores internally...
* the spinlock implementation uses semaphores internally...
*
*
...
@@ -122,7 +122,7 @@ pg_atomic_unlocked_test_flag_impl(volatile pg_atomic_flag *ptr)
...
@@ -122,7 +122,7 @@ pg_atomic_unlocked_test_flag_impl(volatile pg_atomic_flag *ptr)
/*
/*
* Can't do this efficiently in the semaphore based implementation - we'd
* Can't do this efficiently in the semaphore based implementation - we'd
* have to try to acquire the semaphore - so always return true. That's
* have to try to acquire the semaphore - so always return true. That's
* correct, because this is only an unlocked test anyway.Do this in the
* correct, because this is only an unlocked test anyway.
Do this in the
* header so compilers can optimize the test away.
* header so compilers can optimize the test away.
*/
*/
return
true
;
return
true
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment