]> git.ipfire.org Git - thirdparty/squid.git/blob - src/helper/ReservationId.cc
Source Format Enforcement (#1234)
[thirdparty/squid.git] / src / helper / ReservationId.cc
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"
10 #include "helper/ReservationId.h"
11
12 Helper::ReservationId
13 Helper::ReservationId::Next()
14 {
15 static uint64_t Ids = 0;
16 Helper::ReservationId reservation;
17 reservation.id = ++Ids;
18 return reservation;
19 }
20
21 std::ostream &
22 Helper::ReservationId::print(std::ostream &os) const
23 {
24 return os << "hlpRes" << id;
25 }
26