CMS 3D CMS Logo

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 const IOOffset CHUNK_SIZE = 128 * 1024 * 1024
 

Function Documentation

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

Definition at line 14 of file LocalCacheFile.cc.

References cms::Exception::addContext().

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

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

Variable Documentation

const IOOffset CHUNK_SIZE = 128 * 1024 * 1024
static

Definition at line 12 of file LocalCacheFile.cc.

Referenced by LocalCacheFile::cache().