Boost logo

Boost :

From: Ion Gaztañaga (igaztanaga_at_[hidden])
Date: 2006-06-13 14:32:29


Jody Hagins(e)k dio:
> On Mon, 12 Jun 2006 07:04:26 +0200
> Ion Gaztañaga <igaztanaga_at_[hidden]> wrote:
>
>
>> This means that the OS will synchronize file and memory contents from
>> time to time, since shared memory will be implemented with memory
>> mapped files. However, I will create those files emulating shared
>> memory with the FILE_ATTRIBUTE_TEMPORARY attribute, that according to
>> MSDN:
>
>
> Why not use the best native support for each platform, falling back onto
> a more common and portable approach when better native support is not
> provided?

That would mean that shared memory in POSIX and Win32 would have
different lifetimes and your program wouldn't be portable, and you can
use the native API for this. My intention was to present a portable
solution that can be (maybe) standardized. But maybe I could present
additional non-portable classes for Windows if that's useful for Windows
programmers.

Regards,

Ion


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk