apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Luke Kenneth Casson Leighton <l...@samba-tng.org>
Subject Re: [PATCH] Allow unrelated SMSes to reset
Date Thu, 19 Jul 2001 13:09:17 GMT
On Wed, Jul 18, 2001 at 05:30:17PM +0200, Sander Striker wrote:

> > Yup.  That's the catch.  It'd probably need to be a bit more
> > sophisticated than what I've posted OR make the apr_sms_reset a bit more
> > robust (i.e. handle SMSes that have already been cleaned up).  I'm
> > leaning towards making the apr_sms_reset more robust.  -- justin
> I wonder how you plan on doing that.
> Furthermore, the method of registering the cleanup with an
> unrelated sms(B) will not work if the registering sms(A)
> is destroyed before the cleanup is run in B. In other
> words, if A is destroyed the cleanup is still registered
> in B. If B is reset/destroyed: boom.
> Or maybe you were planning to unregister the function when
> the thread exits (in which case it would probably work).

manual unregistering is quite common - it's used a lot in

View raw message