moonchen opened a new pull request, #14101:
URL: https://github.com/apache/trafficserver/pull/14101

   Makes `Continuation` non-copyable. `NetAccept::clone()` and its overrides 
now copy through an explicit `clone_from()`, and `ActivityCop` is 
re-initialized with `init()` instead of by assigning a temporary.
   
   A copy of a `Continuation` shares the original's mutex and keeps the 
original's intrusive list links, so a copy made by accident compiles silently 
and fails only when the two objects interfere. With the copy operations 
deleted, such a copy is a compile error. The acceptor clones still need most of 
the acceptor's state, so `NetAccept`'s data members move into a 
`NetAcceptState` base that `clone_from()` copies as a whole, together with the 
handler, mutex, control flags and thread affinity, but not the list link. A 
field added to the acceptor later is then copied without anyone having to 
remember it.
   


-- 
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]

Reply via email to