Skip to content

Commit 40dde39

Browse files
committed
Upgraded deps
1 parent 9571b7f commit 40dde39

File tree

13 files changed

+41
-37
lines changed

13 files changed

+41
-37
lines changed

.clang-format

-1
This file was deleted.

.clang-format

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
BinPackArguments: false
2+
BinPackParameters: false
3+
ColumnLimit: 80
4+
IndentWidth: 2

.gitignore

-1
This file was deleted.

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.build*

.prettierrc

-1
This file was deleted.

.prettierrc

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"bracketSpacing": false,
3+
"printWidth": 80,
4+
"semi": false,
5+
"singleQuote": true,
6+
"proseWrap": "always"
7+
}

.travis.yml

+6-12
Original file line numberDiff line numberDiff line change
@@ -6,24 +6,18 @@ notifications:
66
matrix:
77
include:
88
- os: linux
9-
dist: trusty
10-
addons:
11-
apt:
12-
sources:
13-
- ubuntu-toolchain-r-test
14-
- llvm-toolchain-trusty-7
15-
packages:
16-
- g++-8
17-
- clang-7
9+
dist: focal
1810
- os: osx
19-
osx_image: xcode10.2
11+
osx_image: xcode12.2
2012
- os: windows
2113

2214
git:
15+
depth: 1
2316
submodules: false
2417

2518
before_install:
26-
- git submodule update --init
19+
- export -f travis_nanoseconds travis_time_start travis_time_finish
2720

2821
script:
29-
- .cppsm/travis-ci || ./test
22+
- if ! [ -x .cppsm/travis-ci ]; then git submodule --quiet update --init --no-recommend-shallow --depth 1 .cppsm; fi
23+
- .cppsm/travis-ci

CMakeLists.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
cmake_minimum_required(VERSION 3.9)
2-
include(.cppsm/c++17-no-rtti-no-exns.cmake)
2+
project(rdcss.cpp)
3+
include(.cppsm/c++17.cmake)

provides/include/rdcss_v1/casn.hpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ class CASN_private : CASN {
3333

3434
static_assert(!is_stored_plain_v<int>);
3535
static_assert(is_stored_plain_v<int *>);
36-
static_assert(is_stored_plain_v<int * [2]>);
37-
static_assert(is_stored_plain_v<float * [2]>);
36+
static_assert(is_stored_plain_v<int *[2]>);
37+
static_assert(is_stored_plain_v<float *[2]>);
3838
static_assert(!is_stored_plain_v<float>);
3939

4040
static inline constexpr size_t align_to(size_t alignment, size_t size) {

provides/include/rdcss_v1/synopsis.hpp

+13-13
Original file line numberDiff line numberDiff line change
@@ -6,50 +6,50 @@ namespace rdcss_v1 {
66

77
// casn.hpp ====================================================================
88

9-
// Multi-word atomic compare and set (CASN)
9+
/// Multi-word atomic compare and set (CASN)
1010
struct CASN {
1111
// Mutable atoms -------------------------------------------------------------
1212

13+
/// A mutable atom that supports CASN operations.
1314
template <class Value> struct atom_t;
14-
// A mutable atom that supports CASN operations.
1515

16+
/// Creates a mutable atom.
1617
template <class Value>
1718
static atom_t<std::remove_cvref_t<Value>> atom(Value &&value);
18-
// Creates a mutable atom.
1919

20+
/// Atomically loads and returns the current value of the atom.
2021
template <class Value> static Value load(const atom_t<Value> &atom);
21-
// Atomically loads and returns the current value of the atom.
2222

23+
/// Atomically replaces the value of the atom with the desired value.
2324
template <class Value, class Forwardable_Value>
2425
static void store(atom_t<Value> &atom, Forwardable_Value &&desired);
25-
// Atomically replaces the value of the atom with the desired value.
2626

2727
// Typed CASN ----------------------------------------------------------------
2828

29+
/// Describes a single CAS operation.
2930
template <class Value> struct op_t;
30-
// Describes a single CAS operation.
3131

32+
/// Specifies a single CAS operation.
3233
template <class Value, class Forwardable_Expected, class Forwardable_Desired>
3334
static op_t<Value> op(atom_t<Value> &atom,
3435
Forwardable_Expected &&expected,
3536
Forwardable_Desired &&desired);
36-
// Specifies a single CAS operation.
3737

38+
/// Attempts the described CAS operations. Returns `true` on success and
39+
/// `false` on failure.
3840
template <class... Ops> static bool casn(Ops &&... ops);
39-
// Attempts the described CAS operations. Returns `true` on success and
40-
// `false` on failure.
4141

4242
// Unityped CASN -------------------------------------------------------------
4343

44+
/// Describes a single CAS operation in a unityped manner.
4445
struct op_mono_t;
45-
// Describes a single CAS operation in a unityped manner.
4646

47+
/// Creates a unityped reference to the CAS operation.
4748
template <class Value> static op_mono_t as_mono(op_t<Value> &op);
48-
// Creates a unityped reference to the CAS operation.
4949

50+
/// Attempts the described unityped CAS operations. Returns `true` on success
51+
/// and `false` on failure.
5052
static bool casn(op_mono_t *mono_ops);
51-
// Attempts the described unityped CAS operations. Returns `true` on success
52-
// and `false` on failure.
5353
};
5454

5555
} // namespace rdcss_v1

0 commit comments

Comments
 (0)