8#ifndef INCLUDED_BALB_RESERVATIONGUARD
9#define INCLUDED_BALB_RESERVATIONGUARD
160#include <balscm_version.h>
186 TYPE *d_rateController_p;
251 d_rateController_p = rateController;
252 d_unitsReserved = numUnits;
254 d_rateController_p->reserve(numUnits);
261 d_rateController_p->cancelReserved(d_unitsReserved);
269 return d_rateController_p;
276 return d_unitsReserved;
286 d_rateController_p->cancelReserved(numUnits);
287 d_unitsReserved -= numUnits;
296 d_rateController_p->submitReserved(numUnits);
297 d_unitsReserved -= numUnits;
Definition balb_reservationguard.h:183
~ReservationGuard()
Definition balb_reservationguard.h:259
bsls::Types::Uint64 unitsReserved() const
Return the number of units reserved by this object.
Definition balb_reservationguard.h:274
TYPE * ptr() const
Return a pointer to the rate controlling object used by this object.
Definition balb_reservationguard.h:267
void submitReserved(bsls::Types::Uint64 numUnits)
Definition balb_reservationguard.h:292
void cancelReserved(bsls::Types::Uint64 numUnits)
Definition balb_reservationguard.h:282
#define BSLS_ASSERT_SAFE(X)
Definition bsls_assert.h:1762
#define BSLS_IDENT(str)
Definition bsls_ident.h:195
Definition balb_controlmanager.h:133
unsigned long long Uint64
Definition bsls_types.h:137