Skip to content
Permalink
Browse files
Tiger build fix.
* platform/Threading.h: The OSAtomic functions take non-volatile pointers on Tiger.


Canonical link: https://commits.webkit.org/22990@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@29152 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  • Loading branch information
bdash committed Jan 4, 2008
1 parent fb8ed86 commit 8c397f8a99f53f7b38e87d6fb761ac824bd729a5
Showing 2 changed files with 8 additions and 2 deletions.
@@ -1,3 +1,9 @@
2008-01-04 Mark Rowe <mrowe@apple.com>

Tiger build fix.

* platform/Threading.h: The OSAtomic functions take non-volatile pointers on Tiger.

2008-01-03 Mark Rowe <mrowe@apple.com>

Reviewed by Maciej Stachowiak.
@@ -174,8 +174,8 @@ inline int atomicDecrement(int volatile* addend) { return InterlockedDecrement(r
#elif PLATFORM(DARWIN)
#define WTF_USE_LOCKFREE_THREADSAFESHARED 1

inline void atomicIncrement(int volatile* addend) { OSAtomicIncrement32Barrier(addend); }
inline int atomicDecrement(int volatile* addend) { return OSAtomicDecrement32Barrier(addend); }
inline void atomicIncrement(int volatile* addend) { OSAtomicIncrement32Barrier(const_cast<int*>(addend)); }
inline int atomicDecrement(int volatile* addend) { return OSAtomicDecrement32Barrier(const_cast<int*>(addend)); }

#elif COMPILER(GCC)
#define WTF_USE_LOCKFREE_THREADSAFESHARED 1

0 comments on commit 8c397f8

Please sign in to comment.