ReservationId.cc
Go to the documentation of this file.
1/*
2 * Copyright (C) 1996-2023 The Squid Software Foundation and contributors
3 *
4 * Squid software is distributed under GPLv2+ license and includes
5 * contributions from numerous individuals and organizations.
6 * Please see the COPYING and CONTRIBUTORS files for details.
7 */
8
9#include "squid.h"
11
14{
15 static uint64_t Ids = 0;
16 Helper::ReservationId reservation;
17 reservation.id = ++Ids;
18 return reservation;
19}
20
21std::ostream &
22Helper::ReservationId::print(std::ostream &os) const
23{
24 return os << "hlpRes" << id;
25}
26
a (temporary) lock on a (stateful) helper channel
Definition: ReservationId.h:18
static ReservationId Next()
std::ostream & print(std::ostream &os) const
dumps the reservation info for debugging
uint64_t id
uniquely identifies this reservation
Definition: ReservationId.h:36

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors