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