| // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| // for details. All rights reserved. Use of this source code is governed by a |
| // BSD-style license that can be found in the LICENSE file. |
| |
| #ifndef VM_ATOMIC_H_ |
| #define VM_ATOMIC_H_ |
| |
| #include "vm/allocation.h" |
| |
| namespace dart { |
| |
| class AtomicOperations : public AllStatic { |
| public: |
| // Atomically fetch the value at p and increment the value at p. |
| // Returns the original value at p. |
| static uintptr_t FetchAndIncrement(uintptr_t* p); |
| }; |
| |
| |
| } // namespace dart |
| |
| #endif // VM_ATOMIC_H_ |