Mar 22, 2012

[c++]PAGESIZE

Detecting the virtual memory page size

Boost:
Class mapped_region
#include <boost/interprocess/mapped_region.hpp>
static std::size_t get_page_size() ;

posix:
long pagesize = sysconf(_SC_PAGE_SIZE);


Windows:
#include <sys/param.h> // defines PAGESIZE

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.