fix AIX bustage

git-svn-id: svn://10.0.0.236/trunk@196263 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
darin%meer.net
2006-05-10 18:13:20 +00:00
parent 8ace42165d
commit ee1fd28464

View File

@@ -165,6 +165,13 @@ public:
mon.Wait();
}
// This method needs to be public to support older compilers (xlC_r on AIX).
// It should be called directly as this class type is reference counted.
virtual ~nsThreadStartupEvent() {
if (mMon)
nsAutoMonitor::DestroyMonitor(mMon);
}
private:
NS_IMETHOD Run() {
nsAutoMonitor mon(mMon);
@@ -178,11 +185,6 @@ private:
, mInitialized(PR_FALSE) {
}
virtual ~nsThreadStartupEvent() {
if (mMon)
nsAutoMonitor::DestroyMonitor(mMon);
}
PRMonitor *mMon;
PRBool mInitialized;
};