|
@ -157,6 +157,10 @@ class mmap_array : public mmap_ptr |
|
|
posix_madvise(this->start, mapping_size, map_access); |
|
|
posix_madvise(this->start, mapping_size, map_access); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void enforce_caching() { |
|
|
|
|
|
posix_madvise(this->start, mapping_size, MADV_WILLNEED); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
constexpr size_t size() { |
|
|
constexpr size_t size() { |
|
|
return item_size; |
|
|
return item_size; |
|
|
} |
|
|
} |
|
|