Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(538)

Side by Side Diff: src/shared/atomic_cpp11.h

Issue 1659163007: Rename fletch -> dartino (Closed) Base URL: https://github.com/dartino/sdk.git@master
Patch Set: address comments Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/shared/atomic.h ('k') | src/shared/atomic_gcc_intrinsics.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE.md file. 3 // BSD-style license that can be found in the LICENSE.md file.
4 4
5 #ifndef SRC_SHARED_ATOMIC_CPP11_H_ 5 #ifndef SRC_SHARED_ATOMIC_CPP11_H_
6 #define SRC_SHARED_ATOMIC_CPP11_H_ 6 #define SRC_SHARED_ATOMIC_CPP11_H_
7 7
8 #ifndef SRC_SHARED_ATOMIC_H_ 8 #ifndef SRC_SHARED_ATOMIC_H_
9 #error Do not include atomic_cpp11.h directly; use atomic.h instead. 9 #error Do not include atomic_cpp11.h directly; use atomic.h instead.
10 #endif 10 #endif
11 11
12 #include <atomic> 12 #include <atomic>
13 13
14 namespace fletch { 14 namespace dartino {
15 15
16 template <typename T> 16 template <typename T>
17 using Atomic = std::atomic<T>; 17 using Atomic = std::atomic<T>;
18 18
19 static const std::memory_order kRelaxed = std::memory_order_relaxed; 19 static const std::memory_order kRelaxed = std::memory_order_relaxed;
20 static const std::memory_order kConsume = std::memory_order_consume; 20 static const std::memory_order kConsume = std::memory_order_consume;
21 static const std::memory_order kAcquire = std::memory_order_acquire; 21 static const std::memory_order kAcquire = std::memory_order_acquire;
22 static const std::memory_order kRelease = std::memory_order_release; 22 static const std::memory_order kRelease = std::memory_order_release;
23 static const std::memory_order kAcqRel = std::memory_order_acq_rel; 23 static const std::memory_order kAcqRel = std::memory_order_acq_rel;
24 static const std::memory_order kSeqCst = std::memory_order_seq_cst; 24 static const std::memory_order kSeqCst = std::memory_order_seq_cst;
25 25
26 } // namespace fletch 26 } // namespace dartino
27 27
28 #endif // SRC_SHARED_ATOMIC_CPP11_H_ 28 #endif // SRC_SHARED_ATOMIC_CPP11_H_
OLDNEW
« no previous file with comments | « src/shared/atomic.h ('k') | src/shared/atomic_gcc_intrinsics.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698