[prev in list] [next in list] [prev in thread] [next in thread]
List: sptk-commits
Subject: r1618 - trunk/sptk4
From: alexey () mail ! total-knowledge ! com
Date: 2011-09-12 23:55:44
Message-ID: courier.000000004E6E9C00.000016DB () mail ! total-knowledge ! com
[Download RAW message or body]
Author: alexey
Date: 2011-09-12 16:55:43 -0700 (Mon, 12 Sep 2011)
New Revision: 1618
Modified:
trunk/sptk4/CMemoryMappedFile.h
Log:
MC
Modified: trunk/sptk4/CMemoryMappedFile.h
===================================================================
--- trunk/sptk4/CMemoryMappedFile.h 2011-09-12 23:36:06 UTC (rev 1617)
+++ trunk/sptk4/CMemoryMappedFile.h 2011-09-12 23:55:43 UTC (rev 1618)
@@ -85,8 +85,14 @@
/// Releases memory mapping and closes memory-mapped file
void close();
+ /// @brief Returns true if memory-mapped file is opened
+ bool active() const
+ {
+ return m_file != -1;
+ }
+
/// @brief Returns memory-mapped file name
- const std::string& fileName()
+ const std::string& fileName() const
{
return m_fileName;
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic