Email list hosting service & mailing list manager

closing reader / writer Shiro Kawai (25 May 2005 00:28 UTC)
Re: closing reader / writer Michael Sperber (06 Jun 2005 15:12 UTC)
Re: closing reader / writer Shiro Kawai (07 Jun 2005 10:33 UTC)
Re: closing reader / writer Michael Sperber (08 Jun 2005 07:24 UTC)
Re: closing reader / writer Shiro Kawai (08 Jun 2005 07:55 UTC)
Re: closing reader / writer Michael Sperber (09 Jun 2005 05:53 UTC)

Re: closing reader / writer Michael Sperber 09 Jun 2005 05:53 UTC

Shiro Kawai <xxxxxx@lava.net> writes:

> If the 'close' procedure can be called from finalizers, it is possible
> that the 'close' procedure is called while the constructor is running
> to create another reader.  So a race condition on the access to
> the resouce pool can happen.

But if this breaks the creation of new readers, surely there's an API
violation in progress?  It seems we agree on the kinds of situations
we'd like to prevent, but I'm not sure how the current spec doesn't do
this, or how to tighten the screws appropriately.

--
Cheers =8-} Mike
Friede, Völkerverständigung und überhaupt blabla