mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 11:25:00 +00:00
Bug 1295763 - Allow ThreadSafeAutoRefCnt with XPCOM_GLUE - r=froydnj
Removed '#ifndef XPCOM_GLUE' that blocked usage of thread-safe ref-counting from XPCOM_GLUE code. MozReview-Commit-ID: Hm0rdTKK46l --HG-- extra : rebase_source : cd2779d0b39c5319cfdb5d12e8f4ac6f38945e7b
This commit is contained in:
parent
40188f3de6
commit
fb84b054bc
@ -20,9 +20,7 @@
|
||||
|
||||
#include "nsDebug.h"
|
||||
#include "nsXPCOM.h"
|
||||
#ifndef XPCOM_GLUE
|
||||
#include "mozilla/Atomics.h"
|
||||
#endif
|
||||
#include "mozilla/Attributes.h"
|
||||
#include "mozilla/Assertions.h"
|
||||
#include "mozilla/Compiler.h"
|
||||
@ -331,7 +329,6 @@ private:
|
||||
nsrefcnt mValue;
|
||||
};
|
||||
|
||||
#ifndef XPCOM_GLUE
|
||||
namespace mozilla {
|
||||
class ThreadSafeAutoRefCnt
|
||||
{
|
||||
@ -360,7 +357,6 @@ private:
|
||||
Atomic<nsrefcnt> mValue;
|
||||
};
|
||||
} // namespace mozilla
|
||||
#endif
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user