#include <ProducerConsumer.h>
Inheritance diagram for qpid::sys::ProducerConsumer::Lock:


Public Member Functions | |
| bool | isOk () const |
| You must call isOk() after creating a lock to verify its state. | |
| void | confirm () |
| Confirm that an item was produced/consumed. | |
| void | cancel () |
| Cancel the lock to indicate nothing was produced/consumed. | |
| bool | isTimedOut () const |
| True if this lock experienced a timeout. | |
| bool | isShutdown () const |
| True if we have been shutdown. | |
Public Attributes | |
| ProducerConsumer & | pc |
Protected Types | |
| INCOMPLETE | |
| CONFIRMED | |
| CANCELLED | |
| TIMEOUT | |
| enum | Status { INCOMPLETE, CONFIRMED, CANCELLED, TIMEOUT } |
| Lock status. | |
Protected Member Functions | |
| Lock (ProducerConsumer &p) | |
| void | checkOk () const |
Protected Attributes | |
| Mutex::ScopedLock | lock |
| Status | status |
| void qpid::sys::ProducerConsumer::Lock::cancel | ( | ) |
Cancel the lock to indicate nothing was produced/consumed.
Note that locks are not actually released until destroyed.
| void qpid::sys::ProducerConsumer::Lock::confirm | ( | ) |
| bool qpid::sys::ProducerConsumer::Lock::isOk | ( | ) | const |
You must call isOk() after creating a lock to verify its state.
1.4.7