1 2 /* 3 * Copyright 2006 The Android Open Source Project 4 * 5 * Use of this source code is governed by a BSD-style license that can be 6 * found in the LICENSE file. 7 */ 8 9 10 #include "SkThread.h" 11 sk_atomic_inc(int32_t * addr)12int32_t sk_atomic_inc(int32_t* addr) { 13 int32_t value = *addr; 14 *addr = value + 1; 15 return value; 16 } 17 sk_atomic_dec(int32_t * addr)18int32_t sk_atomic_dec(int32_t* addr) { 19 int32_t value = *addr; 20 *addr = value - 1; 21 return value; 22 } 23 SkMutex()24SkMutex::SkMutex() {} 25 ~SkMutex()26SkMutex::~SkMutex() {} 27 acquire()28void SkMutex::acquire() {} 29 release()30void SkMutex::release() {} 31 32