From ee1fd2846444154207038a92ce7943210fbb7a95 Mon Sep 17 00:00:00 2001 From: "darin%meer.net" Date: Wed, 10 May 2006 18:13:20 +0000 Subject: [PATCH] fix AIX bustage git-svn-id: svn://10.0.0.236/trunk@196263 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/xpcom/threads/nsThread.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/mozilla/xpcom/threads/nsThread.cpp b/mozilla/xpcom/threads/nsThread.cpp index 7f4948f8923..8a6f1113f07 100644 --- a/mozilla/xpcom/threads/nsThread.cpp +++ b/mozilla/xpcom/threads/nsThread.cpp @@ -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; };