9#ifndef SQUID_SRC_HELPER_RESERVATIONID_H
10#define SQUID_SRC_HELPER_RESERVATIONID_H
24 explicit operator bool()
const {
return reserved(); }
33 std::ostream &
print(std::ostream &os)
const;
56 std::hash<uint64_t> aHash;
57 return aHash(reservation.value());
a (temporary) lock on a (stateful) helper channel
bool operator!=(const Helper::ReservationId &other) const
static ReservationId Next()
std::ostream & print(std::ostream &os) const
dumps the reservation info for debugging
uint64_t id
uniquely identifies this reservation
bool operator==(const Helper::ReservationId &other) const
helper protocol primitives
std::ostream & operator<<(std::ostream &, const Reply &)
result_type operator()(const argument_type &reservation) const noexcept
Helper::ReservationId argument_type