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 15 of file LocalCacheFile.cc.

References cms::Exception::addContext().

Referenced by LocalCacheFile::flush(), LocalCacheFile::resize(), LocalCacheFile::write(), and 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

const IOOffset CHUNK_SIZE = 128*1024*1024
static

Definition at line 12 of file LocalCacheFile.cc.

Referenced by LocalCacheFile::cache().