CMS 3D CMS Logo

Classes | Macros | Functions | Variables
XrdSource.cc File Reference
#include <memory>
#include <thread>
#include <chrono>
#include <atomic>
#include <iostream>
#include <cassert>
#include <netdb.h>
#include "XrdCl/XrdClFile.hh"
#include "FWCore/Utilities/interface/EDMException.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "XrdSource.h"
#include "XrdRequest.h"
#include "QualityMetric.h"
#include "XrdStatistics.h"

Go to the source code of this file.

Classes

class  DelayedClose
 
class  QueryAttrHandler
 
struct  QueryAttrHandler::QueryAttrState
 

Macros

#define _GLIBCXX_USE_NANOSLEEP
 
#define MAX_REQUEST   256 * 1024
 
#define XRD_CL_MAX_CHUNK   512 * 1024
 

Functions

static void validateList (const XrdCl::ChunkList &cl)
 

Variables

std::atomic< int > g_delayCount {0}
 

Macro Definition Documentation

◆ _GLIBCXX_USE_NANOSLEEP

#define _GLIBCXX_USE_NANOSLEEP

Definition at line 3 of file XrdSource.cc.

◆ MAX_REQUEST

#define MAX_REQUEST   256 * 1024

Definition at line 23 of file XrdSource.cc.

◆ XRD_CL_MAX_CHUNK

#define XRD_CL_MAX_CHUNK   512 * 1024

Definition at line 24 of file XrdSource.cc.

Function Documentation

◆ validateList()

static void validateList ( const XrdCl::ChunkList &  cl)
static

Definition at line 370 of file XrdSource.cc.

370  {
371  off_t last_offset = -1;
372  for (const auto &ci : cl) {
373  assert(static_cast<off_t>(ci.offset) > last_offset);
374  last_offset = ci.offset;
375  assert(ci.length <= XRD_CL_MAX_CHUNK);
376  assert(ci.offset < 0x1ffffffffff);
377  assert(ci.offset > 0);
378  }
379  assert(cl.size() <= 1024);
380 }

References cms::cuda::assert(), GetRecoTauVFromDQM_MC_cff::cl, and XRD_CL_MAX_CHUNK.

Referenced by XrdAdaptor::Source::handle().

Variable Documentation

◆ g_delayCount

std::atomic<int> g_delayCount {0}

Definition at line 32 of file XrdSource.cc.

cms::cuda::assert
assert(be >=bs)
GetRecoTauVFromDQM_MC_cff.cl
cl
Definition: GetRecoTauVFromDQM_MC_cff.py:38
XRD_CL_MAX_CHUNK
#define XRD_CL_MAX_CHUNK
Definition: XrdSource.cc:24