XRootD
BufferUtils.hh File Reference
#include <list>
#include <vector>
#include <atomic>
#include <chrono>
#include <sys/types.h>
#include <memory>
#include <mutex>
#include <sstream>
#include <iomanip>
#include <ctime>
+ Include dependency graph for BufferUtils.hh:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  XrdCephBuffer::Extent
 
class  XrdCephBuffer::ExtentHolder
 Designed to hold individual extents, but itself provide Extent-like capabilities Useful in cases of combining extends, or needing to hold a range of extends and extract information about (or aggregated from) the contained objects. Could be useful to inherit from Extent if improvements needed. More...
 
class  XrdCephBuffer::Timer_ns
 

Namespaces

 XrdCephBuffer
 is a simple implementation of IXrdCephBufferData using std::vector<char> representation for the buffer
 

Macros

#define BUFLOG(x)   {std::unique_lock<std::mutex>cephbuf_iolock; std::stringstream _bs; _bs << x; std::clog << _bs.str() << std::endl;}
 
#define CEPHBUFDEBUG   1
 

Typedefs

typedef std::vector< Extent > XrdCephBuffer::ExtentContainer
 Container defintion for Extents Typedef to provide a container of extents as a simple stl vector container. More...
 

Variables

std::mutex cephbuf_iolock
 

Macro Definition Documentation

◆ BUFLOG

#define BUFLOG (   x)    {std::unique_lock<std::mutex>cephbuf_iolock; std::stringstream _bs; _bs << x; std::clog << _bs.str() << std::endl;}

Definition at line 23 of file BufferUtils.hh.

◆ CEPHBUFDEBUG

#define CEPHBUFDEBUG   1

Definition at line 20 of file BufferUtils.hh.

Variable Documentation

◆ cephbuf_iolock

std::mutex cephbuf_iolock
extern

Definition at line 9 of file BufferUtils.cc.