Re: [E] [TSAPI] TSTxnAlloc

2023-12-12 Thread Walt Karas
anism) to do the cleanup on TXN_CLOSE.\ > I don't see how your answers are related to my questions so I'll let others consider this. > -Original Message----- > From: Walt Karas > Sent: Thursday, December 7, 2023 9:27 AM > To: dev@trafficserver.apache.org > Subject: Re: [E] [TSAPI] TSTxnAlloc > > >

RE: [TSAPI] TSTxnAlloc

2023-12-12 Thread Alan Carroll
See my previous email - we could say it must be a POD for TxnAlloc and if it's not, use Cleanup. -Original Message- From: Chris McFarlen Sent: Friday, December 8, 2023 12:03 PM To: dev@trafficserver.apache.org Subject: Re: [TSAPI] TSTxnAlloc Should the template function ver

RE: [E] [TSAPI] TSTxnAlloc

2023-12-12 Thread Alan Carroll
nism) to do the cleanup on TXN_CLOSE. -Original Message- From: Walt Karas Sent: Thursday, December 7, 2023 9:27 AM To: dev@trafficserver.apache.org Subject: Re: [E] [TSAPI] TSTxnAlloc

Re: [TSAPI] TSTxnAlloc

2023-12-08 Thread Chris McFarlen
Should the template function versions ensure is_trivially_destructible? This should reject non POD allocations. Sent with Proton Mail secure email. On Wednesday, December 6th, 2023 at 7:00 PM, Alan Carroll wrote: > Proposed Transaction based memory allocation API > > TSTxnAlloc > ***

Re: [E] [TSAPI] TSTxnAlloc

2023-12-07 Thread Walt Karas
ot ATS resources. > > -Original Message- > From: Walt Karas > Sent: Wednesday, December 6, 2023 9:25 PM > To: dev@trafficserver.apache.org > Subject: Re: [E] [TSAPI] TSTxnAlloc > > Could we move Arena.h to tscpp/util, and just add: > > Arena & tsapi::txnArena(T

RE: [E] [TSAPI] TSTxnAlloc

2023-12-07 Thread Alan Carroll
able state. And the finalizers are about cleaning up UDTs, not ATS resources. -Original Message- From: Walt Karas Sent: Wednesday, December 6, 2023 9:25 PM To: dev@trafficserver.apache.org Subject: Re: [E] [TSAPI] TSTxnAlloc Could we move Arena.h to tscpp/util, and just add: Are

Re: [E] [TSAPI] TSTxnAlloc

2023-12-06 Thread Walt Karas
Could we move Arena.h to tscpp/util, and just add: Arena & tsapi::txnArena(TSHttpTxn txn); For your finalizer example, when would that be better than using Cleanup.h? That is, when would it be better than having the vector be a data member of the TxnAuxData class you provide as a parameter to th

[TSAPI] TSTxnAlloc

2023-12-06 Thread Alan Carroll
Proposed Transaction based memory allocation API TSTxnAlloc ** Traffic Server Transaction based memory allocation. Synopsis .. code-block:: cpp #include .. function:: swoc::MemSpan TSTxnAlloc(TSHttpTxn txn, size_t bytes) .. function:: swoc::MemSpan TSTxnAllocAligned(TSHt