pkgsrc-ng/www/webkit-gtk/patches/patch-Source_WTF_wtf_ThreadSafeRefCounted.h
2013-09-26 17:14:40 +02:00

23 lines
618 B
C++

$NetBSD: patch-Source_WTF_wtf_ThreadSafeRefCounted.h,v 1.1 2013/05/09 14:04:42 joerg Exp $
--- Source/WTF/wtf/ThreadSafeRefCounted.h.orig 2013-05-08 07:46:55.000000000 +0000
+++ Source/WTF/wtf/ThreadSafeRefCounted.h
@@ -96,7 +96,7 @@ public:
#if !USE(LOCKFREE_THREADSAFEREFCOUNTED)
MutexLocker locker(m_mutex);
#endif
- return static_cast<int const volatile &>(m_refCount);
+ return m_refCount;
}
protected:
@@ -123,7 +123,7 @@ protected:
}
private:
- int m_refCount;
+ atomic_int m_refCount;
#if !USE(LOCKFREE_THREADSAFEREFCOUNTED)
mutable Mutex m_mutex;
#endif