|
Squid Web Cache master
|
a (temporary) lock on a (stateful) helper channel More...
#include <ReservationId.h>
Public Member Functions | |
| bool | reserved () const |
| operator bool () const | |
| bool | operator! () const |
| bool | operator== (const Helper::ReservationId &other) const |
| bool | operator!= (const Helper::ReservationId &other) const |
| void | clear () |
| uint64_t | value () const |
| std::ostream & | print (std::ostream &os) const |
| dumps the reservation info for debugging | |
Static Public Member Functions | |
| static ReservationId | Next () |
Private Attributes | |
| uint64_t | id = 0 |
| uniquely identifies this reservation | |
Definition at line 17 of file ReservationId.h.
|
inline |
Definition at line 29 of file ReservationId.h.
|
static |
Definition at line 13 of file ReservationId.cc.
References id.
Referenced by helper_stateful_server::reserve().
|
inlineexplicit |
Definition at line 24 of file ReservationId.h.
References reserved().
|
inline |
Definition at line 25 of file ReservationId.h.
References reserved().
|
inline |
Definition at line 27 of file ReservationId.h.
|
inline |
Definition at line 26 of file ReservationId.h.
References id.
| std::ostream & Helper::ReservationId::print | ( | std::ostream & | os | ) | const |
Definition at line 22 of file ReservationId.cc.
|
inline |
Definition at line 22 of file ReservationId.h.
Referenced by operator bool(), operator!(), and helper_stateful_server::reserved().
|
inline |
Definition at line 30 of file ReservationId.h.
References id.
|
private |
Definition at line 36 of file ReservationId.h.
Referenced by Next(), operator==(), and value().