1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "ppapi/shared_impl/proxy_lock.h"
7 #include "base/synchronization/lock.h"
8 #include "ppapi/shared_impl/ppapi_globals.h"
13 void ProxyLock::Acquire() {
14 base::Lock
* lock(PpapiGlobals::Get()->GetProxyLock());
20 void ProxyLock::Release() {
21 base::Lock
* lock(PpapiGlobals::Get()->GetProxyLock());
26 void CallWhileUnlocked(const base::Closure
& closure
) {
31 void CallWhileLocked(const base::Closure
& closure
) {