xrootd
Loading...
Searching...
No Matches
Classes | Typedefs | Enumerations | Variables
XrdSsi Namespace Reference

Classes

class  ShMap
 
struct  ShMap_Parms
 

Typedefs

typedef int(* ShMap_Hash_t) (const char *key)
 

Enumerations

enum  ShMap_Access { ReadOnly = 1 , ReadWrite = 2 }
 The action parameter that must be passed to the Attach() method. More...
 
enum  SyncOpt {
  SyncOff = 0 , SyncOn , SyncAll , SyncNow ,
  SyncQSz
}
 Options valid for the Sync() method. More...
 

Variables

static const int ShMap_4Resize = -1
 
XrdSysTrace Trace
 

Detailed Description

This include file defines a simple key-value store interface using shared memory. This allows you to share the map with other processes in read as well as read/write mode. See the XrdSsi::ShMap teplated class within.

Typedef Documentation

◆ ShMap_Hash_t

typedef int(* XrdSsi::ShMap_Hash_t) (const char *key)

Typedef for the optional hash computation function (see constructor)

Parameters
keyPointer to the key whose hash is to be returned. If nil the function should return its 4-character name (e.g. {int hash; memcpy(&hash, "c32 ", sizeof(int)); return hash;}
Returns
Either the hash value of the key or the hash name as an int.

Enumeration Type Documentation

◆ ShMap_Access

The action parameter that must be passed to the Attach() method.

< Attach existing map for

Enumerator
ReadOnly 

reading

ReadWrite 

reading & writing

◆ SyncOpt

Options valid for the Sync() method.

Enumerator
SyncOff 
SyncOn 
SyncAll 
SyncNow 
SyncQSz 

Variable Documentation

◆ ShMap_4Resize

const int XrdSsi::ShMap_4Resize = -1
static

Parameters to pass to Create(). For Resize(&parms) initialize the struct as: "ShMap_Parms parms(XrdSsi::ShMap_Parms::ForResize)" so that the default values are appropriate for resizing instead of creation.

◆ Trace

XrdSysTrace XrdSsi::Trace
extern