void doSync(long mappingPtr, boolean metadata) throws IOException { if (!mNonDurable) { if (!cKernel.FlushViewOfFile(mappingPtr, super.getPageCount() * pageSize())) { throw toException(cKernel.GetLastError()); } fsync(); } mEmpty = false; }
void doSync(long mappingPtr, boolean metadata) throws IOException { if (mFileDescriptor != -1) { PosixFileIO.msyncAddr(mappingPtr, super.getPageCount() * pageSize()); if (metadata) { PosixFileIO.fsyncFd(mFileDescriptor); } } mEmpty = false; }
void doClose(long mappingPtr) throws IOException { PosixFileIO.munmap(mappingPtr, super.getPageCount() * pageSize()); if (mFileDescriptor != -1) { PosixFileIO.closeFd(mFileDescriptor); } } }
private void fsync() throws IOException { if (mFileHandle != null) { // Note: Win32 doesn't have a flush metadata flag. if (!cKernel.FlushFileBuffers(mFileHandle)) { throw toException(cKernel.GetLastError()); } } }
@Override MappedPageArray doOpen() throws IOException { boolean empty = mEmpty; WindowsMappedPageArray pa = new WindowsMappedPageArray (pageSize(), super.getPageCount(), mFile, mOptions); pa.mEmpty = empty; return pa; }
@Override MappedPageArray doOpen() throws IOException { boolean empty = mEmpty; PosixMappedPageArray pa = new PosixMappedPageArray (pageSize(), super.getPageCount(), mFile, mOptions); pa.mEmpty = empty; return pa; }
void doSync(long mappingPtr, boolean metadata) throws IOException { if (!mNonDurable) { if (!cKernel.FlushViewOfFile(mappingPtr, super.getPageCount() * pageSize())) { throw toException(cKernel.GetLastError()); } fsync(); } mEmpty = false; }
void doSync(long mappingPtr, boolean metadata) throws IOException { if (mFileDescriptor != -1) { PosixFileIO.msyncAddr(mappingPtr, super.getPageCount() * pageSize()); if (metadata) { PosixFileIO.fsyncFd(mFileDescriptor); } } mEmpty = false; }
void doClose(long mappingPtr) throws IOException { PosixFileIO.munmap(mappingPtr, super.getPageCount() * pageSize()); if (mFileDescriptor != -1) { PosixFileIO.closeFd(mFileDescriptor); } } }
private void fsync() throws IOException { if (mFileHandle != null) { // Note: Win32 doesn't have a flush metadata flag. if (!cKernel.FlushFileBuffers(mFileHandle)) { throw toException(cKernel.GetLastError()); } } }
@Override MappedPageArray doOpen() throws IOException { boolean empty = mEmpty; WindowsMappedPageArray pa = new WindowsMappedPageArray (pageSize(), super.getPageCount(), mFile, mOptions); pa.mEmpty = empty; return pa; }
@Override MappedPageArray doOpen() throws IOException { boolean empty = mEmpty; PosixMappedPageArray pa = new PosixMappedPageArray (pageSize(), super.getPageCount(), mFile, mOptions); pa.mEmpty = empty; return pa; }
void doSync(long mappingPtr, boolean metadata) throws IOException { if (!mNonDurable) { if (!cKernel.FlushViewOfFile(mappingPtr, super.getPageCount() * pageSize())) { throw toException(cKernel.GetLastError()); } fsync(); } mEmpty = false; }
void doSync(long mappingPtr, boolean metadata) throws IOException { if (mFileDescriptor != -1) { PosixFileIO.msyncAddr(mappingPtr, super.getPageCount() * pageSize()); if (metadata) { PosixFileIO.fsyncFd(mFileDescriptor); } } mEmpty = false; }
void doClose(long mappingPtr) throws IOException { PosixFileIO.munmap(mappingPtr, super.getPageCount() * pageSize()); if (mFileDescriptor != -1) { PosixFileIO.closeFd(mFileDescriptor); } } }
private void fsync() throws IOException { if (mFileHandle != null) { // Note: Win32 doesn't have a flush metadata flag. if (!cKernel.FlushFileBuffers(mFileHandle)) { throw toException(cKernel.GetLastError()); } } }
void doSyncPage(long mappingPtr, long index) throws IOException { if (!mNonDurable) { int pageSize = pageSize(); if (!cKernel.FlushViewOfFile(mappingPtr + index * pageSize, pageSize)) { throw toException(cKernel.GetLastError()); } fsync(); } mEmpty = false; }