You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by gs...@apache.org on 2013/04/30 20:44:22 UTC
svn commit: r1477771 - /qpid/trunk/qpid/cpp/src/qpid/sys/MemoryMappedFile.h
Author: gsim
Date: Tue Apr 30 18:44:20 2013
New Revision: 1477771
URL: http://svn.apache.org/r1477771
Log:
QPID-4339: add export symbol directives
Modified:
qpid/trunk/qpid/cpp/src/qpid/sys/MemoryMappedFile.h
Modified: qpid/trunk/qpid/cpp/src/qpid/sys/MemoryMappedFile.h
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/src/qpid/sys/MemoryMappedFile.h?rev=1477771&r1=1477770&r2=1477771&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/src/qpid/sys/MemoryMappedFile.h (original)
+++ qpid/trunk/qpid/cpp/src/qpid/sys/MemoryMappedFile.h Tue Apr 30 18:44:20 2013
@@ -21,6 +21,7 @@
* under the License.
*
*/
+#include "qpid/CommonImportExport.h"
#include <string>
namespace qpid {
@@ -32,37 +33,37 @@ class MemoryMappedFilePrivate;
*/
class MemoryMappedFile {
public:
- MemoryMappedFile();
- ~MemoryMappedFile();
+ QPID_COMMON_EXTERN MemoryMappedFile();
+ QPID_COMMON_EXTERN ~MemoryMappedFile();
/**
* Opens a file that can be mapped by region into memory
*/
- std::string open(const std::string& name, const std::string& directory);
+ QPID_COMMON_EXTERN std::string open(const std::string& name, const std::string& directory);
/**
* Returns the page size
*/
- size_t getPageSize();
+ QPID_COMMON_EXTERN size_t getPageSize();
/**
* Load a portion of the file into memory
*/
- char* map(size_t offset, size_t size);
+ QPID_COMMON_EXTERN char* map(size_t offset, size_t size);
/**
* Evict a portion of the file from memory
*/
- void unmap(char* region, size_t size);
+ QPID_COMMON_EXTERN void unmap(char* region, size_t size);
/**
* Flush any changes to a previously mapped region of the file
* back to disk
*/
- void flush(char* region, size_t size);
+ QPID_COMMON_EXTERN void flush(char* region, size_t size);
/**
* Expand the capacity of the file
*/
- void expand(size_t offset);
+ QPID_COMMON_EXTERN void expand(size_t offset);
/**
* Returns true if memory mapping is supported, false otherwise
*/
- static bool isSupported();
+ QPID_COMMON_EXTERN static bool isSupported();
private:
MemoryMappedFilePrivate* state;
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org