Proposal: Stop enforcing single-writer-multi-reader file access
Duncan Coutts
duncan.coutts at googlemail.com
Tue Nov 8 14:43:57 CET 2011
On Tue, 2011-11-08 at 13:27 +0000, Ian Lynagh wrote:
> On Tue, Nov 08, 2011 at 11:54:02AM +0000, Duncan Coutts wrote:
> >
> > And if you switch the default and users have to do their own locking,
> > how can they do it? I'm not sure there is any sensible way to do it. Any
> > bit of IO code can open any file. If they're already tightly coupled and
> > can share an MVar it's fine, but that's not the sort of accidental
> > situation that the current implicit locking protects against.
>
> We have the same problem now with any library which you FFI import that
> does any file IO.
Sure, but that doesn't mean we should remove all protections.
Duncan
More information about the Libraries
mailing list