зеркало из https://github.com/mozilla/pjs.git
Rename verify to verifyThread to fix OS X debug build bustage.
This commit is contained in:
Родитель
290494e26b
Коммит
a108b43b2f
|
@ -188,7 +188,7 @@ class nsSingleThreadVerifier
|
|||
{
|
||||
public:
|
||||
nsSingleThreadVerifier();
|
||||
void verify() const;
|
||||
void verifyThread() const;
|
||||
protected:
|
||||
void* mThread;
|
||||
};
|
||||
|
@ -284,7 +284,7 @@ class nsSharedBufferHandle
|
|||
get_refcount() const
|
||||
{
|
||||
#ifdef DEBUG
|
||||
mSingleThreadVerifier.verify();
|
||||
mSingleThreadVerifier.verifyThread();
|
||||
#endif
|
||||
return mFlags & kRefCountMask;
|
||||
}
|
||||
|
@ -293,7 +293,7 @@ class nsSharedBufferHandle
|
|||
set_refcount( PRUint32 aNewRefCount )
|
||||
{
|
||||
#ifdef DEBUG
|
||||
mSingleThreadVerifier.verify();
|
||||
mSingleThreadVerifier.verifyThread();
|
||||
#endif
|
||||
|
||||
NS_ASSERTION(aNewRefCount <= kRefCountMask, "aNewRefCount <= kRefCountMask");
|
||||
|
|
|
@ -46,7 +46,7 @@ nsSingleThreadVerifier::nsSingleThreadVerifier()
|
|||
mThread = PR_GetCurrentThread();
|
||||
}
|
||||
|
||||
void nsSingleThreadVerifier::verify() const
|
||||
void nsSingleThreadVerifier::verifyThread() const
|
||||
{
|
||||
NS_ASSERTION(mThread == PR_GetCurrentThread(),
|
||||
"sharable string being used on multiple threads");
|
||||
|
|
Загрузка…
Ссылка в новой задаче