Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
LLVM bpEVL
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
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
Lorenzo Albano
LLVM bpEVL
Commits
b2b5513d
Commit
b2b5513d
authored
14 years ago
by
Howard Hinnant
Browse files
Options
Downloads
Patches
Plain Diff
Changing <atomic> to follow Design A
llvm-svn: 116742
parent
0a5314fd
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
libcxx/include/atomic
+43
-10238
43 additions, 10238 deletions
libcxx/include/atomic
libcxx/src/atomic.cpp
+0
-23
0 additions, 23 deletions
libcxx/src/atomic.cpp
libcxx/www/atomic_design_a.html
+6
-6
6 additions, 6 deletions
libcxx/www/atomic_design_a.html
with
49 additions
and
10267 deletions
libcxx/include/atomic
+
43
−
10238
View file @
b2b5513d
This diff is collapsed.
Click to expand it.
libcxx/src/atomic.cpp
deleted
100644 → 0
+
0
−
23
View file @
0a5314fd
//===------------------------- atomic.cpp ---------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
#include
"__mutex_base"
#include
"atomic"
_LIBCPP_BEGIN_NAMESPACE_STD
_LIBCPP_VISIBLE
mutex
&
__not_atomic_mut
()
{
static
mutex
m
;
return
m
;
}
_LIBCPP_END_NAMESPACE_STD
This diff is collapsed.
Click to expand it.
libcxx/www/atomic_design_a.html
+
6
−
6
View file @
b2b5513d
...
@@ -79,18 +79,18 @@ type __atomic_exchange(type* atomic_obj, type desired, int mem_ord);
...
@@ -79,18 +79,18 @@ type __atomic_exchange(type* atomic_obj, type desired, int mem_ord);
<font
color=
"#C80000"
>
// type must be trivially copyable
</font>
<font
color=
"#C80000"
>
// type must be trivially copyable
</font>
<font
color=
"#C80000"
>
// Behavior is defined for mem_success = [0 ... 5],
</font>
<font
color=
"#C80000"
>
// Behavior is defined for mem_success = [0 ... 5],
</font>
<font
color=
"#C80000"
>
// mem_falure
<
= mem_success
</font>
<font
color=
"#C80000"
>
// mem_fa
i
lure
<
= mem_success
</font>
<font
color=
"#C80000"
>
// mem_falure != 3
</font>
<font
color=
"#C80000"
>
// mem_fa
i
lure != 3
</font>
<font
color=
"#C80000"
>
// mem_falure != 4
</font>
<font
color=
"#C80000"
>
// mem_fa
i
lure != 4
</font>
bool __atomic_compare_exchange_strong(type* atomic_obj,
bool __atomic_compare_exchange_strong(type* atomic_obj,
type* expected, type desired,
type* expected, type desired,
int mem_success, int mem_failure);
int mem_success, int mem_failure);
<font
color=
"#C80000"
>
// type must be trivially copyable
</font>
<font
color=
"#C80000"
>
// type must be trivially copyable
</font>
<font
color=
"#C80000"
>
// Behavior is defined for mem_success = [0 ... 5],
</font>
<font
color=
"#C80000"
>
// Behavior is defined for mem_success = [0 ... 5],
</font>
<font
color=
"#C80000"
>
// mem_falure
<
= mem_success
</font>
<font
color=
"#C80000"
>
// mem_fa
i
lure
<
= mem_success
</font>
<font
color=
"#C80000"
>
// mem_falure != 3
</font>
<font
color=
"#C80000"
>
// mem_fa
i
lure != 3
</font>
<font
color=
"#C80000"
>
// mem_falure != 4
</font>
<font
color=
"#C80000"
>
// mem_fa
i
lure != 4
</font>
bool __atomic_compare_exchange_weak(type* atomic_obj,
bool __atomic_compare_exchange_weak(type* atomic_obj,
type* expected, type desired,
type* expected, type desired,
int mem_success, int mem_failure);
int mem_success, int mem_failure);
...
...
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