[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [DESIGN] Stacked resources ownership model?

From: Julian Foad <julianfoad_at_btopenworld.com>
Date: 2005-12-15 22:30:05 CET

Erik Huelsmann wrote:
>
> * Create a special stream which breaks the ownership model by intent,
> which can be used to interject between any stacked streams and
> non-owned streams

By a "non-owned stream" do you mean a stream that you wish wouldn't own its
file (or other lower-level resource) though it actually does? Something like a
stream-from-apr-file that does own and close its file (in the new ownership
model), but where the insertion of this special "breaking" stream effectively
causes the resulting stack of streams not to own the file?

I don't see how that can work. When I close this special stream, will it close
the underlying stream_from_apr_file? If it does, that defeats the purpose
because then the file will be closed; if it doesn't, that's wrong because the
underlying stream won't be flushed and closed.

What am I missing?

- Julian

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Dec 15 22:30:55 2005

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.