[Groonga-commit] groonga/grnxx [master] Update comments.

Back to archive index

susumu.yata null+****@clear*****
Tue Feb 26 16:49:04 JST 2013


susumu.yata	2013-02-26 16:49:04 +0900 (Tue, 26 Feb 2013)

  New Revision: 8ae2c0cb2022548163c32813df0b26bfcd3c31cb
  https://github.com/groonga/grnxx/commit/8ae2c0cb2022548163c32813df0b26bfcd3c31cb

  Log:
    Update comments.

  Modified files:
    lib/io/file.hpp
    lib/io/view.hpp

  Modified: lib/io/file.hpp (+1 -1)
===================================================================
--- lib/io/file.hpp    2013-02-26 16:39:38 +0900 (afae480)
+++ lib/io/file.hpp    2013-02-26 16:49:04 +0900 (a2047f7)
@@ -142,7 +142,7 @@ class File {
 
   // Return the file path.
   virtual String path() const = 0;
-  // Return enabled file flags.
+  // Return the enabled file flags.
   virtual FileFlags flags() const = 0;
 
   // Return a pointer to the file handle 

  Modified: lib/io/view.hpp (+8 -2)
===================================================================
--- lib/io/view.hpp    2013-02-26 16:39:38 +0900 (4db217c)
+++ lib/io/view.hpp    2013-02-26 16:49:04 +0900 (94e9517)
@@ -1,5 +1,5 @@
 /*
-  Copyright (C) 2012  Brazil, Inc.
+  Copyright (C) 2012-2013  Brazil, Inc.
 
   This library is free software; you can redistribute it and/or
   modify it under the terms of the GNU Lesser General Public
@@ -62,7 +62,7 @@ class View {
   View();
   virtual ~View();
 
-  // Create an anonymous memory mapping.
+  // Create an anonymous memory mapping of "size" bytes.
   // Available flags are VIEW_HUGE_TLB only.
   static View *open(ViewFlags flags, uint64_t size);
   // Create a file-backed memory mapping.
@@ -72,11 +72,17 @@ class View {
   static View *open(ViewFlags flags, File *file,
                     uint64_t offset, uint64_t size);
 
+  // Flush modified pages.
   virtual void sync() = 0;
+  // Flush modified pages containing the area which starts at "offset" and has
+  // the length of "size" bytes.
   virtual void sync(uint64_t offset, uint64_t size) = 0;
 
+  // Return the enabled flags.
   virtual ViewFlags flags() const = 0;
+  // Return the starting address.
   virtual void *address() const = 0;
+  // Return the size.
   virtual uint64_t size() const = 0;
 
   virtual StringBuilder &write_to(StringBuilder &builder) const = 0;
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index