mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-24 21:58:06 +00:00
Bug 1067744 - Fix build bustage in e8a1c2b11f71, and actually make the monitor re-entrant. r=bustage.
This commit is contained in:
parent
2ae2c66eee
commit
539446b6e2
@ -276,13 +276,13 @@ GMPMutexImpl::Destroy()
|
||||
void
|
||||
GMPMutexImpl::Acquire()
|
||||
{
|
||||
mMonitor.Lock();
|
||||
mMonitor.Enter();
|
||||
}
|
||||
|
||||
void
|
||||
GMPMutexImpl::Release()
|
||||
{
|
||||
mMonitor.Unlock();
|
||||
mMonitor.Exit();
|
||||
}
|
||||
|
||||
} // namespace gmp
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user