e55fb177e9
The current code that pound-includes another define doesn't seem to be working there. BUG=skia: No API changes. TBR=reed@google.com Review URL: https://codereview.chromium.org/820643005
28 lines
746 B
C
28 lines
746 B
C
/*
|
|
* Copyright 2014 Google Inc.
|
|
*
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
* found in the LICENSE file.
|
|
*/
|
|
|
|
#ifndef SkThreadPriv_DEFINED
|
|
#define SkThreadPriv_DEFINED
|
|
|
|
#include "SkTypes.h"
|
|
|
|
// SK_ATOMICS_PLATFORM_H must provide inline implementations for the following declarations.
|
|
|
|
/** Atomic compare and set, for pointers.
|
|
* If *addr == before, set *addr to after. Always returns previous value of *addr.
|
|
* This must issue a release barrier on success, acquire on failure, and always a compiler barrier.
|
|
*/
|
|
static void* sk_atomic_cas(void** addr, void* before, void* after);
|
|
|
|
#ifdef GOOGLE3
|
|
#include "SkAtomics_sync.h"
|
|
#else
|
|
#include SK_ATOMICS_PLATFORM_H
|
|
#endif
|
|
|
|
#endif//SkThreadPriv_DEFINED
|