commit | a02bc1519cf49afa31fb38bed097dd5014880d04 | [log] [tgz] |
---|---|---|
author | bungeman@google.com <bungeman@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Wed May 16 18:21:56 2012 +0000 |
committer | bungeman@google.com <bungeman@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Wed May 16 18:21:56 2012 +0000 |
tree | 64d0638ce6c287317467d07bb5f7aeeb290d7940 | |
parent | b2aacb6dc29f853e3f37fad208ad8fe8c8138a03 [diff] [blame] |
WeakRefCnt http://codereview.appspot.com/5649046/ git-svn-id: http://skia.googlecode.com/svn/trunk@3978 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/ports/SkThread_none.cpp b/src/ports/SkThread_none.cpp index a948a54..56bbbae 100644 --- a/src/ports/SkThread_none.cpp +++ b/src/ports/SkThread_none.cpp
@@ -21,6 +21,14 @@ *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() {}