Removal of calls to PR_MumbleMonitor, which were way too heavy-handed for the job. Replaced with PR_AtomicInc/Decrement. part of module sweep, r=morse, pavlov
git-svn-id: svn://10.0.0.236/trunk@51362 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -16,6 +16,8 @@
|
||||
* Reserved.
|
||||
*/
|
||||
|
||||
#include "pratom.h"
|
||||
|
||||
#include "nsVoidArray.h"
|
||||
|
||||
#include "nsIDOMDocument.h"
|
||||
@@ -155,9 +157,8 @@ nsEditor::nsEditor()
|
||||
{
|
||||
//initialize member variables here
|
||||
NS_INIT_REFCNT();
|
||||
PR_EnterMonitor(GetEditorMonitor());
|
||||
gInstanceCount++;
|
||||
PR_ExitMonitor(GetEditorMonitor());
|
||||
|
||||
PR_AtomicIncrement(&gInstanceCount);
|
||||
}
|
||||
|
||||
nsEditor::~nsEditor()
|
||||
@@ -184,6 +185,8 @@ nsEditor::~nsEditor()
|
||||
InsertTextTxn::ClassShutdown();
|
||||
IMETextTxn::ClassShutdown();
|
||||
IMECommitTxn::ClassShutdown();
|
||||
|
||||
PR_AtomicDecrement(&gInstanceCount);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user