PARTONS  
PARtonic Tomography Of Nucleon Software
Public Member Functions | Private Attributes | List of all members
PARTONS::ThreadQueue Class Reference

Public Member Functions

 ThreadQueue ()
 
virtual ~ThreadQueue ()
 
void push (const ElemUtils::Packet &packet)
 
void push (const List< ElemUtils::Packet > &listOfPacket)
 
ElemUtils::Packet pop ()
 
bool empty ()
 

Private Attributes

std::queue< ElemUtils::Packet > m_tasks
 
sf::Mutex m_mutex
 

Constructor & Destructor Documentation

◆ ThreadQueue()

PARTONS::ThreadQueue::ThreadQueue ( )

◆ ~ThreadQueue()

PARTONS::ThreadQueue::~ThreadQueue ( )
virtual

Member Function Documentation

◆ empty()

bool PARTONS::ThreadQueue::empty ( )

◆ pop()

ElemUtils::Packet PARTONS::ThreadQueue::pop ( )

◆ push() [1/2]

void PARTONS::ThreadQueue::push ( const ElemUtils::Packet &  packet)

◆ push() [2/2]

void PARTONS::ThreadQueue::push ( const List< ElemUtils::Packet > &  listOfPacket)

Member Data Documentation

◆ m_mutex

sf::Mutex PARTONS::ThreadQueue::m_mutex
private

◆ m_tasks

std::queue<ElemUtils::Packet> PARTONS::ThreadQueue::m_tasks
private

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