Index: base/shared_memory.h |
diff --git a/base/shared_memory.h b/base/shared_memory.h |
index e1c083377bb56f55d9cc6726d3148ba57b67afea..01a806a223d40299d2d55be5eb91e60fcb5a0588 100644 |
--- a/base/shared_memory.h |
+++ b/base/shared_memory.h |
@@ -142,8 +142,10 @@ class BASE_EXPORT SharedMemory { |
// Maps the shared memory into the caller's address space. |
// Returns true on success, false otherwise. The memory address |
- // is accessed via the memory() accessor. |
+ // is accessed via the memory() accessor. The mapped address is guaranteed to |
+ // have an alignment of at least kMapMinimumAlignment. |
bool Map(uint32 bytes); |
+ enum { kMapMinimumAlignment = 32 }; |
jar (doing other things)
2012/08/17 21:32:32
nit: use MACRO_STYLE MAP_MINIMUM_ALIGNMENT (this
DaleCurtis
2012/08/17 21:43:46
Done.
|
// Unmaps the shared memory from the caller's address space. |
// Returns true if successful; returns false on error or if the |