Release the specified index for use in the next generation.
Declared in <bdlcc_fixedqueueindexmanager.h>
void
abortPushIndexReservation(
unsigned int generation,
unsigned int index);
Release the specified index and make it available for use in the generation following the specified generation. The behavior is undefined unless the calling thread holds a reservation on generation and index, and clearPopIndex and then commitPushIndex have been repeatedly invoked with generation and index as input until no indices remain to clear. Note that this operation is used to facilitate removing all the elements in a circular buffer if an exception is thrown between reserving an index for pushing, and committing that index.
| Name | Description |
|---|---|
| generation | generation of the reserved push index |
| index | previously reserved push index to release |