a64c48f4f9
This fixes two problems: 1) #include SK_SOME_DEFINE doesn't work well for all our clients. 2) Things in include/ are #including things in src/, which we don't like. TBR=reed@google.com BUG=skia: Review URL: https://codereview.chromium.org/862983002
24 lines
664 B
C
24 lines
664 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"
|
|
|
|
// SkAtomics.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);
|
|
|
|
#include "SkAtomics.h"
|
|
|
|
#endif//SkThreadPriv_DEFINED
|