blob: 64defc02007a5c3eb1d4e8de08c14e236fc4c6e2 [file] [log] [blame]
// 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_