|
xrootd
|
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 |
| XrdSysSemaphore * | pSem |
A synchronized queue.
|
inline |
Constructor.
References XrdCl::SyncQueue< Item >::pSem.
|
inline |
Destructor.
References XrdCl::SyncQueue< Item >::pSem.
|
inline |
Clear the queue.
References XrdCl::SyncQueue< Item >::pMutex, XrdCl::SyncQueue< Item >::pQueue, and XrdCl::SyncQueue< Item >::pSem.
|
inline |
Get the item from the front of the queue.
References XrdCl::SyncQueue< Item >::pMutex, XrdCl::SyncQueue< Item >::pQueue, XrdCl::SyncQueue< Item >::pSem, and XrdSysSemaphore::Wait().
|
inline |
Check if the queue is empty.
References XrdCl::SyncQueue< Item >::pMutex, and XrdCl::SyncQueue< Item >::pQueue.
|
inline |
Put the item in the queue.
References XrdCl::SyncQueue< Item >::pMutex, XrdSysSemaphore::Post(), XrdCl::SyncQueue< Item >::pQueue, and XrdCl::SyncQueue< Item >::pSem.
|
protected |
|
protected |
|
protected |