]>
Commit | Line | Data |
---|---|---|
a70e75b7 | 1 | /* |
b8ae064d | 2 | * Copyright (C) 1996-2023 The Squid Software Foundation and contributors |
a70e75b7 | 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" | |
a56fcf0b CT |
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 | } | |
8baed639 | 26 |