Backed out changeset a38bb1a95176 (bug 1048102) for build bustage on a CLOSED TREE

This commit is contained in:
Wes Kocher 2014-08-04 16:07:08 -07:00
parent a665725822
commit a304692020
2 changed files with 4 additions and 9 deletions

View File

@ -162,12 +162,10 @@ GMPThreadImpl::GMPThreadImpl()
: mMutex("GMPThreadImpl"),
mThread("GMPThread")
{
MOZ_COUNT_CTOR(GMPThread);
}
GMPThreadImpl::~GMPThreadImpl()
{
MOZ_COUNT_DTOR(GMPThread);
}
void
@ -191,13 +189,10 @@ GMPThreadImpl::Post(GMPTask* aTask)
void
GMPThreadImpl::Join()
{
{
MutexAutoLock lock(mMutex);
if (mThread.IsRunning()) {
mThread.Stop();
}
MutexAutoLock lock(mMutex);
if (mThread.IsRunning()) {
mThread.Stop();
}
delete this;
}
GMPMutexImpl::GMPMutexImpl()

View File

@ -50,7 +50,7 @@ class GMPThread {
public:
virtual ~GMPThread() {}
virtual void Post(GMPTask* aTask) = 0;
virtual void Join() = 0; // Deletes GMPThread!
virtual void Join() = 0;
};
class GMPMutex {