Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(122)

Unified Diff: base/memory/discardable_shared_memory.h

Issue 1427163003: [Discardable Shared Memory] Adding Windows support. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | base/memory/discardable_shared_memory.cc » ('j') | base/memory/discardable_shared_memory.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/memory/discardable_shared_memory.h
diff --git a/base/memory/discardable_shared_memory.h b/base/memory/discardable_shared_memory.h
index 0b5ac9fba8e5f7d9f82245720b69bd9c4051b49b..8be65c2a3c4657dd28ad2a7130f80747696e508b 100644
--- a/base/memory/discardable_shared_memory.h
+++ b/base/memory/discardable_shared_memory.h
@@ -144,6 +144,11 @@ class BASE_EXPORT DiscardableSharedMemory {
DFAKE_MUTEX(thread_collision_warner_);
Time last_known_usage_;
+ // Indicates whether Lock/Unlock pinning is supported on this platform.
+ // Call DoPinning() to access this information from within class functions.
+ static char pinning_supported_;
+ bool DoPinning();
+
DISALLOW_COPY_AND_ASSIGN(DiscardableSharedMemory);
};
« no previous file with comments | « no previous file | base/memory/discardable_shared_memory.cc » ('j') | base/memory/discardable_shared_memory.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698