Merge from Widevine repo of http://go/wvgerrit/47860 This CL updates the copyright notice to indicate that files shared with partners are shared under the Widevine Master License Agreement. bug: 77926774 test: comment change only Change-Id: I0423668111578b80fb39a932d763df2827e2dfc3
33 lines
569 B
C++
33 lines
569 B
C++
// Copyright 2018 Google LLC. All Rights Reserved. This file and proprietary
|
|
// source code may only be used and distributed under the Widevine Master
|
|
// License Agreement.
|
|
//
|
|
// Lock class - provides a simple android specific mutex implementation
|
|
|
|
#include "lock.h"
|
|
#include <utils/Mutex.h>
|
|
|
|
namespace wvcdm {
|
|
|
|
class Lock::Impl {
|
|
public:
|
|
android::Mutex lock_;
|
|
};
|
|
|
|
Lock::Lock() : impl_(new Lock::Impl()) {
|
|
}
|
|
|
|
Lock::~Lock() {
|
|
delete impl_;
|
|
}
|
|
|
|
void Lock::Acquire() {
|
|
impl_->lock_.lock();
|
|
}
|
|
|
|
void Lock::Release() {
|
|
impl_->lock_.unlock();
|
|
}
|
|
|
|
} // namespace wvcdm
|