moonchen opened a new pull request, #14103: URL: https://github.com/apache/trafficserver/pull/14103
Replaces the `CONTINUATION_EVENT_NONE`, `CONTINUATION_DONE` and `CONTINUATION_CONT` macros with `inline constexpr int` constants, replaces the private `force_VFPT_to_top` base class with a virtual destructor on `Continuation`, and makes the mutex-sharing constructor take a `const Ptr<ProxyMutex> &`. Constants that are typed and scoped are easier to read in a debugger and cannot collide with other macros, and a virtual destructor says directly what the empty polymorphic base was there to achieve: both make `Continuation` polymorphic with its vtable pointer first, so its layout does not change. The constructor shares the referenced mutex and never modifies the `Ptr` it is given, so taking it by `const` reference lets callers pass a const or temporary pointer. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
