On 11/03/2010 05:40 PM, Alex Rousskov wrote:
> On 11/03/2010 09:08 AM, Tsantilas Christos wrote:
>> On 11/03/2010 04:54 PM, Alex Rousskov wrote:
>
>>>
>>> Events call cbdataReference/cbdataReferenceDone on their own, right? We
>>> do not need to double that effort as far as I can see.
>>
>> Yes events uses the cbdataReference/cbdataReferenceDone but if we do not
>> lock cbdata before pass to an event the cbdata will be deleted after the
>> event done (when the cbdataReferenceDone called)
>
> I do not think it will be deleted if it is still valid (i.e., if the
> owner still points to it):
Yep, you are right. The cbdata never deleted if the "delete" operator
did not used.
OK, I am running a simple test and I am going to commit to trunk.
>
>> if (c->valid || c->locks)
>> return;
>
> Alex.
>
>
Received on Wed Nov 03 2010 - 15:50:55 MDT
This archive was generated by hypermail 2.2.0 : Wed Nov 03 2010 - 12:00:05 MDT