55 TExMap *TProcessID::fgObjPIDs= 0;
61 static inline
ULong_t Void_Hash(const
void *ptr)
95 ::Warning(
"TProcessID::AddProcessID",
"Maximum number of TProcessID (65535) is almost reached (one left). TRef will stop being functional when the limit is reached.");
97 ::Fatal(
"TProcessID::AddProcessID",
"Maximum number of TProcessID (65535) has been reached. TRef are not longer functional.");
114 snprintf(name,20,
"ProcessID%d",apid);
238 Int_t pid = (uid>>24)&0xff;
289 Int_t uid = uidd & 0xffffff;
337 if ( (obj->
GetUniqueID()&0xff000000)==0xff000000 ) {
366 (*fObjects)[uid] = 0;
static TProcessID * GetPID()
static: returns pointer to current TProcessID
static TProcessID * GetProcessID(UShort_t pid)
static function returning a pointer to TProcessID number pid in fgPIDs
virtual void RecursiveRemove(TObject *obj)
called by the object destructor remove reference to obj from the current table if it is referenced ...
void PutObjectWithID(TObject *obj, UInt_t uid=0)
stores the object at the uid th slot in the table of objects The object uniqued is set as well as its...
void Remove(ULong64_t hash, Long64_t key)
Remove entry with specified key from the TExMap.
ClassImp(TProcessID) static inline ULong_t Void_Hash(const void *ptr)
Return hash value for this object.
Int_t GetLast() const
Return index of last object in array.
virtual void Delete(Option_t *option="")
Remove all objects from the array AND delete all heap based objects.
static UInt_t GetNProcessIDs()
Return the (static) number of process IDs.
virtual void SetName(const char *name)
Change (i.e.
virtual ~TProcessID()
Destructor.
virtual TObject * Remove(TObject *obj)
Remove object from array.
R__EXTERN TVirtualMutex * gROOTMutex
Int_t GetEntriesFast() const
void SetBit(UInt_t f, Bool_t set)
Set or unset the user status bits as specified in f.
This class defines a UUID (Universally Unique IDentifier), also known as GUIDs (Globally Unique IDent...
virtual void Fatal(const char *method, const char *msgfmt,...) const
Issue fatal error message.
static TObjArray * GetPIDs()
static: returns array of TProcessIDs
static TObjArray * fgPIDs
static TProcessID * fgPID
Array pointing to the referenced objects.
UChar_t mod R__LOCKGUARD2(gSrvAuthenticateMutex)
static void SetObjectCount(UInt_t number)
static function to set the current referenced object count fgNumber is incremented every time a new o...
A TProcessID identifies a ROOT job in a unique way in time and space.
static void Cleanup()
static function (called by TROOT destructor) to delete all TProcessIDs
virtual void SetUniqueID(UInt_t uid)
Set the unique object id.
TObject * UncheckedAt(Int_t i) const
Int_t IndexOf(const TObject *obj) const
Long64_t GetValue(ULong64_t hash, Long64_t key)
Return the value belonging to specified key and hash value.
virtual void AddAtAndExpand(TObject *obj, Int_t idx)
Add object at position idx.
static TProcessID * GetProcessWithUID(const TObject *obj)
static function returning a pointer to TProcessID with its pid encoded in the highest byte of obj->Ge...
TProcessID()
Default constructor.
TObjArray * fObjects
Reference count to this object (from TFile)
Int_t IncrementCount()
Increase the reference count to this object.
Bool_t TestBit(UInt_t f) const
Int_t DecrementCount()
The reference fCount is used to delete the TProcessID in the TFile destructor when fCount = 0...
const char * AsString() const
Return UUID as string. Copy string immediately since it will be reused.
static TProcessID * AddProcessID()
Static function to add a new TProcessID to the list of PIDs.
TObject * GetObjectWithID(UInt_t uid)
returns the TObject with unique identifier uid in the table of objects
void CheckInit()
Initialize fObjects.
virtual Int_t GetSize() const
static TExMap * fgObjPIDs
virtual void Clear(Option_t *option="")
delete the TObjArray pointing to referenced objects this function is called by TFile::Close("R") ...
unsigned long long ULong64_t
Int_t GetEntries() const
Return the number of objects in array (i.e.
static TProcessID * GetSessionProcessID()
static function returning the pointer to the session TProcessID
virtual UInt_t GetUniqueID() const
Return the unique object id.
Mother of all ROOT objects.
static UInt_t AssignID(TObject *obj)
static function returning the ID assigned to obj If the object is not yet referenced, its kIsReferenced bit is set and its fUniqueID set to the current number of referenced objects so far.
static UInt_t GetObjectCount()
Return the current referenced object count fgNumber is incremented every time a new object is referen...
static Bool_t IsValid(TProcessID *pid)
static function. return kTRUE if pid is a valid TProcessID
TObject * At(Int_t idx) const
virtual void SetTitle(const char *title="")
Change (i.e. set) the title of the TNamed.
This class stores a (key,value) pair using an external hash.
virtual void Warning(const char *method, const char *msgfmt,...) const
Issue warning message.
UInt_t Hash(ECaseCompare cmp=kExact) const
Return hash value.