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:
sfraser%netscape.com
1999-10-21 05:36:21 +00:00
parent 1e94740a0f
commit a627d5676e
6 changed files with 16 additions and 48 deletions

View File

@@ -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);
}