XrdSsi Namespace Reference

Classes

struct  ShMap_Parms
class  ShMap

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

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

Typedef for the optional hash computation function (see constructor)

Parameters:
parms Pointer 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

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

< Attach existing map for

Enumerator:
ReadOnly 

reading

ReadWrite 

reading & writing

Options valid for the Sync() method.

Enumerator:
SyncOff 
SyncOn 
SyncAll 
SyncNow 
SyncQSz 

Variable Documentation

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.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 23 Mar 2020 for xrootd by  doxygen 1.6.1