Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
ROOT::Internal::RDF::RSlotStack Class Reference

This is an helper class to allow to pick a slot resorting to a map indexed by thread ids.

WARNING: this class does not work as a regular stack. The size is fixed at construction time and no blocking is foreseen.

Definition at line 26 of file RSlotStack.hxx.

Public Member Functions

 RSlotStack ()=delete
 
 RSlotStack (unsigned int size)
 
unsigned int GetSlot ()
 
void ReturnSlot (unsigned int slotNumber)
 

Private Attributes

ROOT::TSpinMutex fMutex
 
const unsigned int fSize
 
std::stack< unsigned intfStack
 

#include <ROOT/RDF/RSlotStack.hxx>

Constructor & Destructor Documentation

◆ RSlotStack() [1/2]

ROOT::Internal::RDF::RSlotStack::RSlotStack ( )
delete

◆ RSlotStack() [2/2]

ROOT::Internal::RDF::RSlotStack::RSlotStack ( unsigned int  size)

Definition at line 17 of file RSlotStack.cxx.

Member Function Documentation

◆ GetSlot()

unsigned int ROOT::Internal::RDF::RSlotStack::GetSlot ( )

Definition at line 31 of file RSlotStack.cxx.

◆ ReturnSlot()

void ROOT::Internal::RDF::RSlotStack::ReturnSlot ( unsigned int  slotNumber)

Definition at line 23 of file RSlotStack.cxx.

Member Data Documentation

◆ fMutex

ROOT::TSpinMutex ROOT::Internal::RDF::RSlotStack::fMutex
private

Definition at line 30 of file RSlotStack.hxx.

◆ fSize

const unsigned int ROOT::Internal::RDF::RSlotStack::fSize
private

Definition at line 28 of file RSlotStack.hxx.

◆ fStack

std::stack<unsigned int> ROOT::Internal::RDF::RSlotStack::fStack
private

Definition at line 29 of file RSlotStack.hxx.

Libraries for ROOT::Internal::RDF::RSlotStack:

The documentation for this class was generated from the following files: