CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions | Variables
LocalCacheFile.cc File Reference
#include "Utilities/StorageFactory/interface/LocalCacheFile.h"
#include "FWCore/Utilities/interface/EDMException.h"
#include <utility>
#include <iostream>
#include <cstdlib>
#include <cstring>
#include <unistd.h>
#include <sys/mman.h>
#include <cerrno>
#include <sstream>

Go to the source code of this file.

Functions

static void nowrite (const std::string &why)
 

Variables

static constexpr IOOffset CHUNK_SIZE = 128 * 1024 * 1024
 

Function Documentation

static void nowrite ( const std::string &  why)
static

Definition at line 16 of file LocalCacheFile.cc.

References cms::Exception::addContext().

Referenced by edm::storage::LocalCacheFile::flush(), edm::storage::LocalCacheFile::resize(), edm::storage::LocalCacheFile::write(), and edm::storage::LocalCacheFile::writev().

16  {
17  cms::Exception ex("LocalCacheFile");
18  ex << "Cannot change file but operation '" << why << "' was called";
19  ex.addContext("LocalCacheFile::" + why + "()");
20  throw ex;
21 }

Variable Documentation

constexpr IOOffset CHUNK_SIZE = 128 * 1024 * 1024
static

Definition at line 14 of file LocalCacheFile.cc.

Referenced by edm::storage::LocalCacheFile::cache().