W3C home > Mailing lists > Public > public-audio@w3.org > July to September 2013

Re: ROC's Proposal for fixing race conditions

From: Jer Noble <jer.noble@apple.com>
Date: Fri, 09 Aug 2013 15:25:32 -0700
Cc: WG <public-audio@w3.org>
Message-id: <937E7348-B29F-44A1-943E-2600C89E02A0@apple.com>
To: Robert O'Callahan <robert@ocallahan.org>

On Aug 9, 2013, at 3:21 PM, Robert O'Callahan <robert@ocallahan.org> wrote:

> It looks like there's a similar mechanism for Windows, where you CreateFileMapping() to create a named object, which can then be mapped as copy-on-write with MapViewOfFile().  I haven't tested this either.
> 
> We don't want to mess around with files, because that will likely cause unnecessary write-back to storage. Maybe there's a way to create special temporary files that don't do that, but I don't know what it is. A tmpfs or ramfs would work but that might not be available.

You can create anonymous mappings by passing in INVALID_HANDLE_VALUE to CreateFileMapping() instead of a handle to a real file.

-Jer

Received on Friday, 9 August 2013 22:26:31 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:03:23 UTC