blob: e70acde5c5787a70d550764af112fa19c2437ea1 [file] [log] [blame]
epoger@google.comec3ed6a2011-07-28 14:26:00 +00001
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
reed@android.com8a1c16f2008-12-17 15:59:43 +00009
10#include "SkThread.h"
11
12int32_t sk_atomic_inc(int32_t* addr)
13{
14 int32_t value = *addr;
15 *addr = value + 1;
16 return value;
17}
18
19int32_t sk_atomic_dec(int32_t* addr)
20{
21 int32_t value = *addr;
22 *addr = value - 1;
23 return value;
24}
25
26SkMutex::SkMutex(bool /* isGlobal */)
27{
28}
29
30SkMutex::~SkMutex()
31{
32}
33
34void SkMutex::acquire()
35{
36}
37
38void SkMutex::release()
39{
40}
41