Bug 1067744 - Fix build bustage in e8a1c2b11f71, and actually make the monitor re-entrant. r=bustage.

This commit is contained in:
Chris Pearce 2014-09-16 20:38:21 +12:00
parent 2ae2c66eee
commit 539446b6e2
2 changed files with 4 additions and 3 deletions

View File

@ -276,13 +276,13 @@ GMPMutexImpl::Destroy()
void
GMPMutexImpl::Acquire()
{
mMonitor.Lock();
mMonitor.Enter();
}
void
GMPMutexImpl::Release()
{
mMonitor.Unlock();
mMonitor.Exit();
}
} // namespace gmp

View File

@ -9,6 +9,7 @@
#include "mozilla/Mutex.h"
#include "gmp-platform.h"
#include "base/thread.h"
#include "mozilla/ReentrantMonitor.h"
namespace mozilla {
namespace gmp {
@ -46,7 +47,7 @@ public:
virtual void Destroy() MOZ_OVERRIDE;
private:
Monitor mMonitor;
ReentrantMonitor mMonitor;
};
} // namespace gmp