Browse Source

[2831] Make a minor comment update about additional case

Mukund Sivaraman 12 years ago
parent
commit
e825b22e4e
1 changed files with 6 additions and 3 deletions
  1. 6 3
      src/lib/util/memory_segment_mapped.h

+ 6 - 3
src/lib/util/memory_segment_mapped.h

@@ -38,9 +38,12 @@ namespace util {
 /// Multiple processes can open multiple segments for the same file in
 /// read-only mode at the same time.  But there shouldn't be more than
 /// one process that opens segments for the same file in read-write mode
-/// at the same time.  Likewise, if one process opens a segment for a file
-/// there shouldn't be any other process that opens a segment for the file
-/// in read-only mode.  This class tries to detect any violation of this
+/// at the same time.  Likewise, if one process opens a segment for a
+/// file in read-write mode, there shouldn't be any other process that
+/// opens a segment for the file in read-only mode. If one or more
+/// processes open segments for a file in read-only mode, there
+/// shouldn't be any other process that opens a segment for the file in
+/// read-write mode. This class tries to detect any violation of this
 /// restriction, but this does not intend to provide 100% safety.  It's
 /// generally the user's responsibility to ensure this condition.
 ///