Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(911)

Unified Diff: src/ports/SkThread_none.cpp

Issue 19808007: Split atomic and mutex implementations and make inlinable. (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Address dependency comments. Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/ports/SkMutex_win.h ('k') | src/ports/SkThread_pthread.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ports/SkThread_none.cpp
===================================================================
--- src/ports/SkThread_none.cpp (revision 12696)
+++ src/ports/SkThread_none.cpp (working copy)
@@ -1,43 +0,0 @@
-/*
- * Copyright 2006 The Android Open Source Project
- *
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- */
-
-#include "SkThread.h"
-
-int32_t sk_atomic_inc(int32_t* addr) {
- int32_t value = *addr;
- *addr = value + 1;
- return value;
-}
-
-int32_t sk_atomic_add(int32_t* addr, int32_t inc) {
- int32_t value = *addr;
- *addr = value + inc;
- return value;
-}
-
-int32_t sk_atomic_dec(int32_t* addr) {
- int32_t value = *addr;
- *addr = value - 1;
- return value;
-}
-void sk_membar_aquire__after_atomic_dec() { }
-
-int32_t sk_atomic_conditional_inc(int32_t* addr) {
- int32_t value = *addr;
- if (value != 0) ++*addr;
- return value;
-}
-void sk_membar_aquire__after_atomic_conditional_inc() { }
-
-SkMutex::SkMutex() {}
-
-SkMutex::~SkMutex() {}
-
-#ifndef SK_USE_POSIX_THREADS
-void SkMutex::acquire() {}
-void SkMutex::release() {}
-#endif
« no previous file with comments | « src/ports/SkMutex_win.h ('k') | src/ports/SkThread_pthread.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698