summaryrefslogtreecommitdiffstats
path: root/base/memory/discardable_memory_shmem.cc
diff options
context:
space:
mode:
Diffstat (limited to 'base/memory/discardable_memory_shmem.cc')
-rw-r--r--base/memory/discardable_memory_shmem.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/base/memory/discardable_memory_shmem.cc b/base/memory/discardable_memory_shmem.cc
index 77699f0..4282481 100644
--- a/base/memory/discardable_memory_shmem.cc
+++ b/base/memory/discardable_memory_shmem.cc
@@ -93,7 +93,7 @@ void* DiscardableMemoryShmem::Memory() const {
}
bool DiscardableMemoryShmem::AllocateAndAcquireLock() {
- if (shared_memory_ && shared_memory_->Lock())
+ if (shared_memory_ && shared_memory_->Lock(0, 0))
return true;
// TODO(reveman): Allocate fixed size memory segments and use a free list to
@@ -105,7 +105,7 @@ bool DiscardableMemoryShmem::AllocateAndAcquireLock() {
}
void DiscardableMemoryShmem::ReleaseLock() {
- shared_memory_->Unlock();
+ shared_memory_->Unlock(0, 0);
}
void DiscardableMemoryShmem::Purge() {