A synchronized queue. More...
#include <XrdClSyncQueue.hh>
Public Member Functions | |
SyncQueue () | |
Constructor. | |
~SyncQueue () | |
Destructor. | |
void | Put (const Item &item) |
Put the item in the queue. | |
Item | Get () |
Get the item from the front of the queue. | |
void | Clear () |
Clear the queue. | |
bool | IsEmpty () |
Check if the queue is empty. | |
Protected Attributes | |
std::queue< Item > | pQueue |
XrdSysMutex | pMutex |
Semaphore * | pSem |
A synchronized queue.
XrdCl::SyncQueue< Item >::SyncQueue | ( | ) | [inline] |
Constructor.
XrdCl::SyncQueue< Item >::~SyncQueue | ( | ) | [inline] |
Destructor.
void XrdCl::SyncQueue< Item >::Clear | ( | ) | [inline] |
Clear the queue.
Item XrdCl::SyncQueue< Item >::Get | ( | ) | [inline] |
Get the item from the front of the queue.
bool XrdCl::SyncQueue< Item >::IsEmpty | ( | ) | [inline] |
Check if the queue is empty.
void XrdCl::SyncQueue< Item >::Put | ( | const Item & | item | ) | [inline] |
Put the item in the queue.
Referenced by XrdCl::JobManager::QueueJob().
XrdSysMutex XrdCl::SyncQueue< Item >::pMutex [protected] |
std::queue<Item> XrdCl::SyncQueue< Item >::pQueue [protected] |
Semaphore* XrdCl::SyncQueue< Item >::pSem [protected] |