mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-09-07 11:20:04 -04:00
23 lines
618 B
C++
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
|