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 int > | fStack |
#include <ROOT/RDF/RSlotStack.hxx>
|
delete |
ROOT::Internal::RDF::RSlotStack::RSlotStack | ( | unsigned int | size | ) |
Definition at line 17 of file RSlotStack.cxx.
unsigned int ROOT::Internal::RDF::RSlotStack::GetSlot | ( | ) |
Definition at line 31 of file RSlotStack.cxx.
Definition at line 23 of file RSlotStack.cxx.
|
private |
Definition at line 30 of file RSlotStack.hxx.
|
private |
Definition at line 28 of file RSlotStack.hxx.
|
private |
Definition at line 29 of file RSlotStack.hxx.